From fe1d30dc558f3de9ce2fb5b7d548d651986f0e14 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 18 Jul 2023 22:47:19 +0200 Subject: Show the current series in the post -> using tags --- themes/elenq/static/css/elenq-pelican.css | 4 ++++ themes/elenq/templates/article.html | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/themes/elenq/static/css/elenq-pelican.css b/themes/elenq/static/css/elenq-pelican.css index 17bc9cd..9f7fc1b 100644 --- a/themes/elenq/static/css/elenq-pelican.css +++ b/themes/elenq/static/css/elenq-pelican.css @@ -30,6 +30,10 @@ li{ margin-bottom: 3rem; } +.series{ + margin-top: 1rem; +} + .hentry p{ /* Reduce margin in the news section*/ margin-bottom: 1ex; } diff --git a/themes/elenq/templates/article.html b/themes/elenq/templates/article.html index 07d5470..868b8bb 100644 --- a/themes/elenq/templates/article.html +++ b/themes/elenq/templates/article.html @@ -19,7 +19,8 @@ title="Permalink to {{ article.title|striptags }}">{{ article.title }} {% import 'translations.html' as translations with context %} {{ translations.translations_for(article) }} - + + + + {% if article.tags %} +
+

+ From the series: + {% for tag in article.tags %} + {{ tag }} + {% endfor %} +

+
+ {% endif %} + + +
{{ article.content }}
-- cgit v1.2.3