summaryrefslogtreecommitdiff
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
parentedc1f4261cdbfe15f6680cb5a38abc4f09df1a4e (diff)
Reuse taglist css in recipes
-rw-r--r--assets/theme/main.scss18
-rw-r--r--layouts/recipes/single.html8
2 files changed, 14 insertions, 12 deletions
diff --git a/assets/theme/main.scss b/assets/theme/main.scss
index 370af14..967e0da 100644
--- a/assets/theme/main.scss
+++ b/assets/theme/main.scss
@@ -153,15 +153,6 @@ section.recipe {
div.description {
grid-column-start: description;
grid-column-end: end;
-
- ul.taglist {
- li {
- display: inline;
- }
-
- margin: 0;
- padding: 0;
- }
}
h2 {
@@ -311,3 +302,12 @@ pre code {
.tag::before {
content: "#";
}
+
+ul.taglist {
+ li {
+ display: inline;
+ }
+
+ margin: 0;
+ padding: 0;
+}
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">