diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index dfd346c..ecac06c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,8 +8,8 @@ SPDX-License-Identifier: MIT <section class="index-content"> {{ .Content }} </section> + {{ if in .Params.categories "book" }} <section class="toc"> - <h1 class="post-title">{{ i18n .Title }}</h1> <ol> {{ range sort .Pages "Weight" }} <li> @@ -20,4 +20,17 @@ SPDX-License-Identifier: MIT {{ end }} <ol> </section> + {{ else }} + <section class="feed"> + <ol> + {{ range sort .Pages "Date" }} + <li> + <a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a> + {{ partial "post-language-switcher.html" . }} + {{ partial "post-info.html" . }} + </li> + {{ end }} + <ol> + </section> + {{ end }} {{ end }} |