git ssb

0+

Grey the earthling / gkn.me.uk



Tree: 7222b6b0d7d5b4564ab2f0d1b28ed8a1a81afda6

Files: 7222b6b0d7d5b4564ab2f0d1b28ed8a1a81afda6 / themes / ran / templates / base.html

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

Built with git-ssb-web