about summary refs log tree commit diff
path: root/layouts/_default/list.html
blob: 0f104a46932f3fae2487c007746635f53f1e1c38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{/*
SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org>

SPDX-License-Identifier: MIT
*/}}

{{ define "main" }}
  <section class="index-content" id="main">
    {{ .Content }}
  </section>
  {{ if in .Params.categories "book" }}
  {{ partial "post-navigation-top.html" . }}
  <section class="toc">
    {{ partial "toc.html" (dict "content" . "currentLink" .RelPermalink) }}
  </section>
  {{ else if in .Params.categories "blog" }}
    {{ partial "feed.html" . }}
  {{ else }}
    {{ partial "generic-list.html" . }}
  {{ end }}
{{ end }}