Files: f20c57f6161c71790d2a002ae9fcaa5cbf30d94b / themes / ran / templates / archives.html
767 bytesRaw
1 | {% extends "base.html" %} |
2 | {%- block title -%}{{- ARCHIVES_TITLE -}}{%- endblock -%} |
3 | {%- block pagedetails -%} |
4 | {{- super() -}} |
5 | <section class="smalllinks"> |
6 | <h2>Years:</h2> |
7 | <ul> |
8 | {%- for article in dates | unique(attribute="date.year") -%} |
9 | <li> |
10 | <a href="/{{- article.date | |
11 | strftime(DATE_FORMAT_YEAR) -}}"> |
12 | {{- article.date | strftime(DATE_FORMAT_YEAR) -}} |
13 | </a> |
14 | </li> |
15 | {%- endfor -%} |
16 | </ul> |
17 | </section> |
18 | <section class="smalllinks"> |
19 | <h2>Labels:</h2> |
20 | <ul> |
21 | {%- for tag, articles in tags | sort -%} |
22 | {%- if articles | list | length > 1 -%} |
23 | <li> |
24 | <a href="/entries/{{- tag.slug -}}"> |
25 | {{- tag -}} |
26 | </a> |
27 | </li> |
28 | {%- endif -%} |
29 | {%- endfor -%} |
30 | </ul> |
31 | </section> |
32 | {%- endblock -%} |
33 | |
34 |
Built with git-ssb-web