summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-09-27 11:13:10 +0000
committeraethrvmn <me@aethrvmn.gr>2025-09-27 11:13:10 +0000
commit84926c940d7ab47b537d3a0dbc064e44d7d44e2a (patch)
tree07a27ab2b7d8d1f3d76da351d2904670296a16dc
parentnew blog post draft (diff)
blog title and taxonomy fix
-rw-r--r--layouts/blog/single.html6
-rw-r--r--layouts/partials/docs/taxonomy.html19
2 files changed, 22 insertions, 3 deletions
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index d702e70..cebdd11 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -1,8 +1,8 @@
{{ define "main" }}
<article class="markdown book-post">
- <!-- <h1> -->
- <!-- {{ partial "docs/title.html" . }} -->
- <!-- </h1> -->
+ <h1>
+ {{ partial "docs/title.html" . }}
+ </h1>
{{ partial "docs/post-meta" . }}
<div class="book-post-content">
{{- .Content -}}
diff --git a/layouts/partials/docs/taxonomy.html b/layouts/partials/docs/taxonomy.html
new file mode 100644
index 0000000..da5ee06
--- /dev/null
+++ b/layouts/partials/docs/taxonomy.html
@@ -0,0 +1,19 @@
+<nav>
+ <ul>
+ {{ range $term, $_ := .Site.Taxonomies }}
+ {{ with $.Site.GetPage (printf "/%s" $term | urlize) }}
+ <li class="book-section-flat">
+ <span>{{ .Title | title | lower }}</span>
+ <ul>
+ {{ range .Pages }}
+ <li class="flex justify-between">
+ <a href="{{ .RelPermalink }}">{{ .Title | lower }}</a>
+ <span>{{ len .Pages | lower }}</span>
+ </li>
+ {{ end }}
+ </ul>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+</nav>
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.