Files: 3f2b4a099adb08762b60eabb9c55a07ace77c3a6 / themes / ran / templates / archives.html
796 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 | <hr class="visuallyhidden"> |
18 | </section> |
19 | <section class="smalllinks"> |
20 | <h2>Labels:</h2> |
21 | <ul> |
22 | {%- for tag, articles in tags | sort -%} |
23 | {%- if articles | list | length > 1 -%} |
24 | <li> |
25 | <a href="/entries/{{- tag.slug -}}"> |
26 | {{- tag -}} |
27 | </a> |
28 | </li> |
29 | {%- endif -%} |
30 | {%- endfor -%} |
31 | </ul> |
32 | </section> |
33 | {%- endblock -%} |
34 | |
35 |
Built with git-ssb-web