summaryrefslogtreecommitdiff
path: root/themes/hugo-book/layouts/taxonomy
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/hugo-book/layouts/taxonomy/list.html13
-rw-r--r--themes/hugo-book/layouts/term.html (renamed from themes/hugo-book/layouts/taxonomy/taxonomy.html)17
2 files changed, 11 insertions, 19 deletions
diff --git a/themes/hugo-book/layouts/taxonomy/list.html b/themes/hugo-book/layouts/taxonomy/list.html
deleted file mode 100644
index 1d3e763..0000000
--- a/themes/hugo-book/layouts/taxonomy/list.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{{ define "main" }}
-<article class="markdown book-post">
- <h1>{{ .Title | title }}</h1>
- {{ $taxonomies := index .Site.Taxonomies .Page.Type }}
- {{ range $taxonomies }}
- <div><a href="{{ .Page.Permalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a></div>
- {{ end }}
-</article>
-{{ end }}
-
-{{ define "toc" }}
- {{ partial "docs/taxonomy" . }}
-{{ end }}
diff --git a/themes/hugo-book/layouts/taxonomy/taxonomy.html b/themes/hugo-book/layouts/term.html
index badf0f6..1bae9a0 100644
--- a/themes/hugo-book/layouts/taxonomy/taxonomy.html
+++ b/themes/hugo-book/layouts/term.html
@@ -2,21 +2,26 @@
{{ range sort .Paginator.Pages }}
<article class="markdown book-post">
<h2>
- <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a>
+ <a href="{{ .RelPermalink }}">{{ partial "docs/title" . }}</a>
</h2>
{{ partial "docs/post-meta" . }}
- <p>
+ <div class="book-post-content">
{{- .Summary -}}
- {{ if .Truncated }}
- <a href="{{ .RelPermalink }}">...</a>
- {{ end }}
- </p>
+ </div>
</article>
{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }}
+{{ define "toc-container" }}
+<aside class="book-toc">
+ <div class="book-toc-content">
+ {{ template "toc" . }}
+ </div>
+</aside>
+{{ end }}
+
{{ define "toc" }}
{{ partial "docs/taxonomy" . }}
{{ end }}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.