diff options
author | Nicolas Dato <nicolas.dato@gmail.com> | 2024-11-26 11:50:27 -0300 |
---|---|---|
committer | Nicolas Dato <nicolas.dato@gmail.com> | 2024-11-26 12:16:42 -0300 |
commit | 8354b8f77fdfd907f07574b63e910aba09232ade (patch) | |
tree | 14ea9df29a441c097f46b20b63f6c952e4e6ccb9 /zola/templates/section.html | |
parent | 40b19b34385a1c6dcefcfaa3e9fa2087ab16ff07 (diff) | |
download | ndato.com-8354b8f77fdfd907f07574b63e910aba09232ade.tar.gz ndato.com-8354b8f77fdfd907f07574b63e910aba09232ade.tar.bz2 |
first article, safer pointers
Diffstat (limited to 'zola/templates/section.html')
-rw-r--r-- | zola/templates/section.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/zola/templates/section.html b/zola/templates/section.html index 11e7e6a..71d3e06 100644 --- a/zola/templates/section.html +++ b/zola/templates/section.html @@ -4,7 +4,7 @@ {% block header %}{{ section.title }}{% endblock %} {% block navigation %} {% for a in section.ancestors %} - {% set s = get_section(path=a) %} + {% set s = get_section(path=a) -%} {% if loop.index != 1 %} > {% endif %}<a href="{{ s.path | safe }}">{{ s.title }}</a> {% endfor %} > <a href="{{ section.path | safe }}">{{ section.title }}</a> @@ -16,7 +16,17 @@ <p><a href="{{ page.path | safe}}">{{ page.title }}</a></p> </dt> <dd> - <p>{{ page.description }} <em><date datetime="{{ page.updated }}">{{ page.updated }}</date></em></p> + <p><em><date datetime="{{ page.date }}">{{ page.date }}</date></em>: {{ page.description }}</p> + <p> + {% for kind, values in page.taxonomies %} + {% set cat = get_taxonomy(kind=kind) -%} + <a href="{{ cat.permalink | safe }}">{{ kind }}</a>: + {% for v in values %} + {% if loop.index != 1%}, {% endif %}<a href="{{ get_taxonomy_url(kind=kind, name=v) | safe }}">{{ v }}</a> + {% endfor %} + <br/> + {% endfor %} + </p> </dd> {% endfor %} </dl> |