summaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-06-10 11:01:19 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-06-10 11:01:19 +0200
commit13934914c0cf8bf359938dcc19dbea82fe33db61 (patch)
tree5c50f47555f10efd4beed8f2546e7146a91571c5 /_layouts/post.html
parent624592d43e23bd26c3da30e255257b652d0e33ed (diff)
Implement tag pages
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 3cddce3..d979adb 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -6,14 +6,13 @@ layout: default
<header>
<h1>
{{ page.title }}
- <br>
- <small>
- {% if page.wip %}Work in progress!{% endif %}
- {% for tag in page.tags %}
- #{{ tag }}
- {% endfor %}
- </small>
+ {% if page.wip %}<small>Work in progress!</small>{% endif %}
</h1>
+ <small>
+ {% for tag in page.tags %}
+ <a href="{{ site.baseurl | prepend: site.url }}/tag/{{ tag | slugify }}">#{{ tag | slugify }}</a>
+ {% endfor %}
+ </small>
</header>
<main>
{{ content }}