|
|
@@ -49,28 +49,28 @@ |
|
|
|
|
|
|
|
{% block css %} |
|
|
|
<link rel="stylesheet" href="{{ media_url('css/w3.css') }}"> |
|
|
|
<link rel="stylesheet" href="{{ media_url('css/custom.css') }}"> |
|
|
|
<link rel="stylesheet" href="{{ media_url('css/tufte.css') }}"> |
|
|
|
<link rel="stylesheet" href="{{ media_url('css/custom.css') }}"> |
|
|
|
{% endblock css %} |
|
|
|
{% block endhead %}{% endblock endhead %} |
|
|
|
</head> |
|
|
|
|
|
|
|
<body class="w3-main" id="{{ resource.meta.id if resource.meta.id else resource.slug }}"> |
|
|
|
<body class="w3-main" id="{{ slug(resource) }}"> |
|
|
|
<!-- from: https://www.w3schools.com/w3css/w3css_sidebar.asp --> |
|
|
|
<div class="w3-top"> |
|
|
|
<div class="w3-bar w3-lightgrey"> |
|
|
|
<button class="w3-bar-item w3-button w3-xlarge w3-right" onclick="w3_open()">☰</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w3-sidebar w3-animate-right w3-bar-block w3-collapse" style="width:350px;right:0;display:block;" id="mySidebar"> |
|
|
|
<button class="w3-bar-item w3-button" onclick="w3_close()">Close ×</button> |
|
|
|
<div class="w3-sidebar w3-animate-right w3-bar-block w3-collapse" id="mySidebar"> |
|
|
|
<button class="w3-bar-item w3-button" onclick="w3_close()"><b>Close</b> ×</button> |
|
|
|
{% set hierarchy = node.rwalk()|list %} |
|
|
|
{% for yeargrp in hierarchy[-1].walk_resources_sorted_by_time()|groupby("meta.created.year")|reverse %} |
|
|
|
<div class="w3-dropdown-hover w3-dropdown-click"> |
|
|
|
<button class="w3-button">{{ yeargrp.grouper }} ({{ yeargrp.list|count }}){# font awesome <i class="fa fa-caret-down"></i> #}</button> |
|
|
|
<button class="w3-button"><b>{{ yeargrp.grouper }}</b> ({{ yeargrp.list|count }}){# font awesome <i class="fa fa-caret-down"></i> #}</button> |
|
|
|
<div class="w3-dropdown-content w3-bar-block"> |
|
|
|
{% for monthgrp in yeargrp.list|groupby("meta.created.month")|reverse %} |
|
|
|
<button class="w3-button">{{ monthgrp.list[0].meta.created|date_format('%B') }}{# font awesome <i class="fa fa-caret-down"></i> #}</button> |
|
|
|
<b><button class="w3-button">{{ monthgrp.list[0].meta.created|date_format('%B') }}{# font awesome <i class="fa fa-caret-down"></i> #}</button></b> |
|
|
|
{% for item in monthgrp.list %} |
|
|
|
<div class="w3-dropdown-click w3-bar-block" style="margin-left: 0.75em;"> |
|
|
|
<a href="{{ content_url(item.url) }}" class="no-tufte-underline w3-bar-item w3-button">{{ item.meta.title }}</a> |
|
|
|