git ssb

0+

Grey the earthling / gkn.me.uk



Tree: a69243673b022c68aae9ed62d69c212758bcce23

Files: a69243673b022c68aae9ed62d69c212758bcce23 / themes / ran / templates / base.html

2155 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<!doctype html>
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 <header>
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 </header>
48 <main>
49 {%- block main -%}
50 <header>
51 {%- block pagetitle -%}
52 <details>
53 <summary>
54 <header>
55 <h1 class="pagetitle">
56 {{- self.title() -}}
57 </h1>
58 </header>
59 </summary>
60 <main>
61 {%- block pagedetails -%}
62 <address>
63 <span>by </span>
64 <a href="/{{- AUTHOR_URL -}}"
65 rel="author">
66 {{- AUTHOR -}}
67 </a>
68 </address>
69 {%- endblock -%}
70 </main>
71 </details>
72 {%- block maincontentintro -%}
73 {%- endblock -%}
74 {%- endblock -%}
75 </header>
76 <main>
77 {%- block maincontent -%}
78 <ol class="biglinks">
79 {%- for article in dates -%}
80 {{- entry_link(article) -}}
81 {%- endfor -%}
82 </ol>
83 {%- endblock -%}
84 </main>
85 {%- endblock -%}
86 </main>
87 <footer>
88 {%- block bottomnav -%}
89 <nav>
90 {{- self.logo() -}}
91 </nav>
92 {%- endblock -%}
93 </footer>
94 </body>
95</html>
96
97

Built with git-ssb-web