diff options
author | Alan Pearce | 2023-04-19 14:06:56 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-19 14:06:56 +0200 |
commit | cea3e75c68070d180311f6dea56c192a7f90c23d (patch) | |
tree | 4dcf4b8381f40a213a428831ac7d0beca643c261 /templates | |
parent | 38b2563500426ad8349d83441be89708b7fac796 (diff) | |
download | website-cea3e75c68070d180311f6dea56c192a7f90c23d.tar.lz website-cea3e75c68070d180311f6dea56c192a7f90c23d.tar.zst website-cea3e75c68070d180311f6dea56c192a7f90c23d.zip |
Switch to bear blog theme
Diffstat (limited to 'templates')
-rw-r--r-- | templates/footer.html | 1 | ||||
-rw-r--r-- | templates/index.html | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..d66241b --- /dev/null +++ b/templates/footer.html @@ -0,0 +1 @@ +Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..10465a4 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} + +{% block body_attrs %} class="h-card vcard"{% endblock %} + +{% block title_class %} p-name fn{% endblock %} + +{% block main %} + <content> + {{ section.content | safe }} + </content> + <section> + <h2>Latest Posts</h2> + <ul class="h-feed"> + {%- for page in section.pages | slice(end=3) %} + <li class="h-entry"> + <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format=config.extra.date_format) }}</time> + <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> + </li> + {%- endfor %} + </ul> + </section> + <section> + <h2>Elsewhere on the Internet</h2> + <ul> + {%- for item in config.extra.contact_menu %} + <li> + {%- if item.url is starting_with("mailto:") %} + <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a> + {%- else %} + <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a> + {%- endif %} + </li> + {%- endfor %} + </ul> + </section> + <footer> + GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key key">{{ config.extra.gpg_fingerprint }}</a> + </footer> +{% endblock %} |