Files: 8f0d5638eb17d9158641caeb15269b3483887cde / themes / ran / templates / base.html
2106 bytesRaw
1 | {%- macro entry_link(article) -%} |
2 | <li> |
3 | <a href="/{{- article.url -}}"> |
4 | <h1> |
5 | {{- article.title |trim -}} |
6 | </h1> |
7 | {#- #} {# -#} |
8 | <time datetime="{{- article.date | strftime('%Y-%m-%d %H:%M') -}}"> |
9 | {{- article.date | strftime(DATE_FORMAT_DAY) -}} |
10 | </time> |
11 | {%- if article.description -%} |
12 | {#- #} {# -#} |
13 | <i> |
14 | {{- article.description | striptags -}} |
15 | </i> |
16 | {%- endif -%} |
17 | </a> |
18 | </li> |
19 | {%- endmacro -%} |
20 | |
21 | <html lang="en-GB"> |
22 | <head> |
23 | {%- block head -%} |
24 | <meta charset="utf-8"> |
25 | <title>{%- block title -%}{{- SITENAME -}}{%- endblock -%}</title> |
26 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
27 | <link href="/style/ran.css" rel="stylesheet"> |
28 | <link href="/style/icon.svg" rel="icon" sizes="any"> |
29 | <link href="/feed" |
30 | rel="alternate" |
31 | type="application/atom+xml" |
32 | title="{{- SITENAME -}}"> |
33 | {%- endblock -%} |
34 | </head> |
35 | <body> |
36 | <section class="topnav"> |
37 | {%- block topnav -%} |
38 | <nav> |
39 | {%- block logo -%} |
40 | <a class="logo" href="/"> |
41 | {%- include "logo.svg" -%} |
42 | <span> Home </span> |
43 | </a> |
44 | {%- endblock -%} |
45 | </nav> |
46 | {%- endblock -%} |
47 | </section> |
48 | {%- block main -%} |
49 | <header> |
50 | {%- block pagetitle -%} |
51 | <details> |
52 | <summary> |
53 | <h1 class="pagetitle"> |
54 | {{- self.title() -}} |
55 | </h1> |
56 | </summary> |
57 | <section> |
58 | {%- block pagedetails -%} |
59 | <address> |
60 | <span>by </span> |
61 | <a href="/{{- AUTHOR_URL -}}" |
62 | rel="author"> |
63 | {{- AUTHOR -}} |
64 | </a> |
65 | </address> |
66 | {%- endblock -%} |
67 | </section> |
68 | </details> |
69 | {%- block maincontentintro -%} |
70 | {%- endblock -%} |
71 | {%- endblock -%} |
72 | </header> |
73 | <main> |
74 | {%- block maincontent -%} |
75 | <ol class="biglinks"> |
76 | {%- for article in dates -%} |
77 | {{- entry_link(article) -}} |
78 | {%- endfor -%} |
79 | </ol> |
80 | {%- endblock -%} |
81 | </main> |
82 | {%- endblock -%} |
83 | <section class="bottomnav"> |
84 | {%- block bottomnav -%} |
85 | <nav> |
86 | {{- self.logo() -}} |
87 | </nav> |
88 | {%- endblock -%} |
89 | </section> |
90 | </body> |
91 | </html> |
92 | |
93 |
Built with git-ssb-web