diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-28 20:50:19 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-28 20:50:19 +0700 |
commit | 1ce0ada18e576a5aaac0d3dc28bd60575a1fdab8 (patch) | |
tree | 53499c577b96c91f83860c6d662819c9ae97f3fb /layouts | |
parent | f77a7a18d6f272aee21d77df9775600574cb2b00 (diff) | |
download | victor-1ce0ada18e576a5aaac0d3dc28bd60575a1fdab8.tar.gz |
Add layout for book and post
Diffstat (limited to 'layouts')
-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 }} |