diff options
Diffstat (limited to '')
| -rw-r--r-- | themes/hugo-book/layouts/term.html (renamed from themes/hugo-book/layouts/taxonomy/taxonomy.html) | 17 |
1 files changed, 11 insertions, 6 deletions
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 }} |
