diff options
| author | Christian Cleberg <[email protected]> | 2025-06-03 16:21:27 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-06-03 16:21:27 -0500 |
| commit | 848d7c4742ce0a4fcf75190f44ce57870bee8aa9 (patch) | |
| tree | 68714c1778ad89137187f98f3f9ebaf49496cb56 /theme/templates | |
| parent | e7963b42bb8c4ea605c40c750ef1623ed0781c1f (diff) | |
| download | cleberg.net-848d7c4742ce0a4fcf75190f44ce57870bee8aa9.tar.gz cleberg.net-848d7c4742ce0a4fcf75190f44ce57870bee8aa9.tar.bz2 cleberg.net-848d7c4742ce0a4fcf75190f44ce57870bee8aa9.zip | |
feat(blog): show filetags on blog roll
Diffstat (limited to 'theme/templates')
| -rw-r--r-- | theme/templates/blog.html | 11 | ||||
| -rw-r--r-- | theme/templates/post.html | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/theme/templates/blog.html b/theme/templates/blog.html index aa2566c..ff09d37 100644 --- a/theme/templates/blog.html +++ b/theme/templates/blog.html @@ -13,6 +13,15 @@ main %} <time datetime='{{ post.date | strftime("%Y-%m-%d") }}' >{{ post.date|strftime("%Y-%m-%d") }}</time > - <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a> + <div class="post-content"> + <a href='{{ url_for("blog", slug=post.slug) }}'>{{ post.title }}</a> + {% if post.filetags %} + <div class="post-tags"> + {% for tag in post.filetags %} + <span class="tag">{{ tag }}</span> + {% endfor %} + </div> + {% endif %} + </div> </div> {% endfor %} {% endblock %} diff --git a/theme/templates/post.html b/theme/templates/post.html index fe38bc1..b7f059d 100644 --- a/theme/templates/post.html +++ b/theme/templates/post.html @@ -15,7 +15,7 @@ ><{{ post.date|strftime("%Y-%m-%d %a %H:%M:%S") }}></time > {% endif %} {% if post.filetags %} - <p class="tags"> + <p class="post-tags"> {% for tag in post.filetags %} <span class="tag">{{ tag }}</span> {% endfor %} |
