diff options
author | Alan Pearce | 2020-11-14 21:17:02 +0100 |
---|---|---|
committer | Alan Pearce | 2020-11-14 21:52:50 +0100 |
commit | 5de7de4e64cb20183ebfe86e16578f4abd62a23e (patch) | |
tree | d3e24ee322d24c03a5e6563ace11c1c588881368 /templates/section.html | |
parent | d996657be5efda94f4a934d5d78c407ba47bf76c (diff) | |
download | website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.lz website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.zst website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip |
Port theme to zola template
Diffstat (limited to 'templates/section.html')
-rw-r--r-- | templates/section.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..e61566f --- /dev/null +++ b/templates/section.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block main %} +<main> + <h1>{{ section.title }}</h1> + {{ section.content }} + <section> + <ul> + {% for page in section.pages %} + <li class="h-entry"> + <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format="%F") }}</time> + <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> + </li> + {% endfor %} + </ul> + </section> +</main> +{% endblock %} |