aboutsummaryrefslogtreecommitdiffstats
path: root/templates/blogpost-panel.html.tera
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-06-22 15:35:18 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-06-22 15:35:18 +0100
commita135acf943ba0fc442dca69f43339921728b1ed4 (patch)
tree77d8ad93d8064db1f0b71601e8b13b165c787cb9 /templates/blogpost-panel.html.tera
parent139c26158bba4ec09e7ba690ba6c9c11da620707 (diff)
downloadblossom-a135acf943ba0fc442dca69f43339921728b1ed4.tar.gz
blossom-a135acf943ba0fc442dca69f43339921728b1ed4.tar.bz2
blossom-a135acf943ba0fc442dca69f43339921728b1ed4.zip
implement blog tag filtering
Diffstat (limited to 'templates/blogpost-panel.html.tera')
-rw-r--r--templates/blogpost-panel.html.tera2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/blogpost-panel.html.tera b/templates/blogpost-panel.html.tera
index 061d87b..64f064c 100644
--- a/templates/blogpost-panel.html.tera
+++ b/templates/blogpost-panel.html.tera
@@ -1,7 +1,7 @@
<div class="panel content blogpost">
<h1 class="title">{{ blogpost.subject }}</h1>
<h2 class="created-at">{{ blogpost.created_at }} <a href="/blog/{{ blogpost.data.name }}">permalink</a></h2>
- <div class="tags">{% for tag in blogpost.tags %}<a class="tag" href="/tag/{{ tag }}">{{ tag }}</a>{% endfor %}</div>
+ <div class="tags">{% for tag in blogpost.tags %}<a class="tag {% if filter_hashset %}{% if tag in filter_hashset %}active{% endif %}{% endif %}" href="/blog?filter={{ tag }}">{{ tag }}</a>{% endfor %}</div>
<div class="blogpost-content">
{{ blogpost.render }}
</div>