diff options
author | Alan Pearce | 2020-11-15 13:14:37 +0100 |
---|---|---|
committer | Alan Pearce | 2020-11-15 13:15:31 +0100 |
commit | 6385a5f78ce2ad7409811927b10fc2b62e427643 (patch) | |
tree | 557406eaea728d84f82e852ada8fd97199d1a709 /themes/xmin/templates/index.html | |
parent | 78096da0f478a0b11b77f365cedc855e7c680e14 (diff) | |
download | website-6385a5f78ce2ad7409811927b10fc2b62e427643.tar.xz website-6385a5f78ce2ad7409811927b10fc2b62e427643.zip |
Extract theme from templates
Diffstat (limited to 'themes/xmin/templates/index.html')
-rw-r--r-- | themes/xmin/templates/index.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/themes/xmin/templates/index.html b/themes/xmin/templates/index.html new file mode 100644 index 0000000..23ec4cd --- /dev/null +++ b/themes/xmin/templates/index.html | |||
@@ -0,0 +1,36 @@ | |||
1 | {% extends "base.html" %} | ||
2 | |||
3 | {% block main %} | ||
4 | <main class="h-card"> | ||
5 | <h1 class="p-name">{{ config.title }}</h1> | ||
6 | {{ section.content | safe }} | ||
7 | <section> | ||
8 | <h2>Latest Posts</h2> | ||
9 | <ul class="h-feed"> | ||
10 | {%- for page in section.pages | slice(end=3) %} | ||
11 | <li class="h-entry"> | ||
12 | <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time> | ||
13 | <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> | ||
14 | </li> | ||
15 | {%- endfor %} | ||
16 | </ul> | ||
17 | </section> | ||
18 | <section> | ||
19 | <h2>Elsewhere on the Internet</h2> | ||
20 | <ul> | ||
21 | {%- for item in config.extra.menu.contact %} | ||
22 | <li> | ||
23 | {%- if item.url is starting_with("mailto:") %} | ||
24 | <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a> | ||
25 | {%- else %} | ||
26 | <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a> | ||
27 | {%- endif %} | ||
28 | </li> | ||
29 | {%- endfor %} | ||
30 | </ul> | ||
31 | </section> | ||
32 | <footer> | ||
33 | GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key pgpkey">{{ config.extra.gpg_fingerprint }}</a> | ||
34 | </footer> | ||
35 | </main> | ||
36 | {% endblock %} | ||