From 8354b8f77fdfd907f07574b63e910aba09232ade Mon Sep 17 00:00:00 2001 From: Nicolas Dato Date: Tue, 26 Nov 2024 11:50:27 -0300 Subject: first article, safer pointers --- zola/templates/base.html | 2 +- zola/templates/section.html | 14 ++++++++++++-- zola/templates/taxonomy_list.html | 15 +++++++++++++++ zola/templates/taxonomy_single.html | 28 ++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 zola/templates/taxonomy_list.html create mode 100644 zola/templates/taxonomy_single.html (limited to 'zola/templates') diff --git a/zola/templates/base.html b/zola/templates/base.html index 22a4728..d60212c 100644 --- a/zola/templates/base.html +++ b/zola/templates/base.html @@ -22,9 +22,9 @@
  • Home
  • Articles
  • +
  • Blog
  • Git
  • CV / Resume
  • -
  • Contact
  • Links
    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 %}{{ s.title }} {% endfor %} > {{ section.title }} @@ -16,7 +16,17 @@

    {{ page.title }}

    -

    {{ page.description }} {{ page.updated }}

    +

    {{ page.date }}: {{ page.description }}

    +

    + {% for kind, values in page.taxonomies %} + {% set cat = get_taxonomy(kind=kind) -%} + {{ kind }}: + {% for v in values %} + {% if loop.index != 1%}, {% endif %}{{ v }} + {% endfor %} +
    + {% endfor %} +

    {% endfor %} diff --git a/zola/templates/taxonomy_list.html b/zola/templates/taxonomy_list.html new file mode 100644 index 0000000..4827853 --- /dev/null +++ b/zola/templates/taxonomy_list.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block title %}{{ taxonomy.name }}{% endblock %} +{% block header %}{{ taxonomy.name }}{% endblock %} +{% block navigation %}Home > {{ taxonomy.name }}{% endblock %} +{% block content %} +
    +{% for term in terms %} +
    +

    {{ term.name }}

    +
    +{% endfor %} +
    +{% endblock %} + diff --git a/zola/templates/taxonomy_single.html b/zola/templates/taxonomy_single.html new file mode 100644 index 0000000..d5641e5 --- /dev/null +++ b/zola/templates/taxonomy_single.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} + +{% block title %}{{ term.name }}{% endblock %} +{% block header %}{{ term.name }}{% endblock %} +{% block navigation %}Home > {{ taxonomy.name }} > {{ term.name }}{% endblock %} +{% block content %} +
    +{% for page in term.pages %} +
    +

    {{ page.title }}

    +
    +
    +

    {{ page.date }}: {{ page.description }}

    +

    + {% for kind, values in page.taxonomies %} + {% set cat = get_taxonomy(kind=kind) -%} + {{ kind }}: + {% for v in values %} + {% if loop.index != 1%}, {% endif %}{{ v }} + {% endfor %} +
    + {% endfor %} +

    +
    +{% endfor %} +
    +{% endblock %} + -- cgit v1.2.3