diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..8a60cb4 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,26 @@ +{{/* +SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org> + +SPDX-License-Identifier: MIT +*/}} + +{{ define "main" }} + <section class="index-content"> + {{ .Content }} + </section> + <section class="toc"> + <h1 class="post-title">{{ i18n .Title }}</h1> + {{ $pages := where .Pages "Type" "in" site.Params.mainSections }} + <ol> + {{ range $pages }} + <li class="post-short-list h-entry"> + <h2 class="p-name post-title{{ if .Params.draft }} draft{{end}}"> + <a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a> + </h2> + {{ partial "post-language-switcher.html" . }} + {{ partial "post-info.html" . }} + </li> + {{ end }} + <li> + </section> +{{ end }} |