summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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.