diff options
Diffstat (limited to 'themes/hugo-book/layouts/term.html')
| -rw-r--r-- | themes/hugo-book/layouts/term.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/hugo-book/layouts/term.html b/themes/hugo-book/layouts/term.html new file mode 100644 index 0000000..1bae9a0 --- /dev/null +++ b/themes/hugo-book/layouts/term.html @@ -0,0 +1,27 @@ +{{ define "main" }} + {{ range sort .Paginator.Pages }} + <article class="markdown book-post"> + <h2> + <a href="{{ .RelPermalink }}">{{ partial "docs/title" . }}</a> + </h2> + {{ partial "docs/post-meta" . }} + <div class="book-post-content"> + {{- .Summary -}} + </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 }} |
