summaryrefslogtreecommitdiff
path: root/themes/elenq
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-07-18 22:47:19 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-07-18 22:47:19 +0200
commitfe1d30dc558f3de9ce2fb5b7d548d651986f0e14 (patch)
tree66457865caa4313bd8752880aa5d7bf497fdbcbb /themes/elenq
parent536a1ae695a5889b4073e73fb7d7ad37cd51c519 (diff)
Show the current series in the post -> using tags
Diffstat (limited to 'themes/elenq')
-rw-r--r--themes/elenq/static/css/elenq-pelican.css4
-rw-r--r--themes/elenq/templates/article.html17
2 files changed, 20 insertions, 1 deletions
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 }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
- </header>
+
+
<footer class="post-info">
<time class="published" datetime="{{ article.date.isoformat() }}">
{{ article.locale_date }}
@@ -42,6 +43,20 @@
</div>
{% endif %}
</footer><!-- /.post-info -->
+
+ {% if article.tags %}
+ <blockquote class="series">
+ <p>
+ From the series:
+ {% for tag in article.tags %}
+ <a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
+ {% endfor %}
+ </p>
+ </blockquote>
+ {% endif %}
+ </header>
+
+
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->