From dd4efd4f8e41dafcc522fd09a78e27baeb9bd2ab Mon Sep 17 00:00:00 2001 From: lsof Date: Sun, 15 Sep 2024 12:30:02 +0200 Subject: blog: add taxonomies (tags) --- templates/blog-page.html | 7 ++++++- templates/blog.html | 3 ++- templates/taxonomy_list.html | 17 +++++++++++++++++ templates/taxonomy_single.html | 17 +++++++++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 templates/taxonomy_list.html create mode 100644 templates/taxonomy_single.html (limited to 'templates') diff --git a/templates/blog-page.html b/templates/blog-page.html index ddf34f0..51f8aba 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -5,12 +5,17 @@ {% block content %}

{{ page.title }}

{{ page.date | date(format="%-d %b %Y") }}

+

+ {% for tag in page.taxonomies.tags %} + #{{ tag }} + {% endfor %} +


{{ page.content | safe }} diff --git a/templates/blog.html b/templates/blog.html index fb7ea21..f8f422f 100644 --- a/templates/blog.html +++ b/templates/blog.html @@ -4,11 +4,12 @@ {% block content %}

{{ section.title }}

+Browse by tags