git ssb

0+

Grey the earthling / gkn.me.uk



Tree: 173a8cf5c44e8a852fa2ab25bb86b1d88de44ae6

Files: 173a8cf5c44e8a852fa2ab25bb86b1d88de44ae6 / themes / ran / templates / base.html

2147 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 </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 <hr class="visuallyhidden">
68 </section>
69 </details>
70 {%- block maincontentintro -%}
71 {%- endblock -%}
72 {%- endblock -%}
73 </header>
74 <main>
75 {%- block maincontent -%}
76 <ol class="biglinks">
77 {%- for article in dates -%}
78 {{- entry_link(article) -}}
79 {%- endfor -%}
80 </ol>
81 {%- endblock -%}
82 </main>
83 {%- endblock -%}
84 <section class="bottomnav">
85 {%- block bottomnav -%}
86 <nav>
87 {{- self.logo() -}}
88 </nav>
89 {%- endblock -%}
90 </section>
91 </body>
92</html>
93
94

Built with git-ssb-web