summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-15 15:23:11 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-15 15:23:11 +0100
commit012ed929d594f0585fd7008c7243be8f330c829b (patch)
treec379a406224726e02dc803c51eba0f729c46130e /layouts
parentedc1f4261cdbfe15f6680cb5a38abc4f09df1a4e (diff)
Reuse taglist css in recipes
Diffstat (limited to 'layouts')
-rw-r--r--layouts/recipes/single.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/recipes/single.html b/layouts/recipes/single.html
index 8362b88..c4876a9 100644
--- a/layouts/recipes/single.html
+++ b/layouts/recipes/single.html
@@ -6,9 +6,11 @@
<article>
<header>
<h1>{{ .Title }}</h1>
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
+ <ul class="taglist">
+ {{- range sort .Params.tags }}
+ <li><a class="tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ {{- end }}
+ </ul>
{{- if .Draft }}
<section class="admonition">
<div class="admonition-title">