about summary refs log tree commit diff
path: root/layouts/_default/list.html
blob: dfd346c01895a3c83dc9613d30d177c5265e8173 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{/*
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>
    <ol>
      {{ range sort .Pages "Weight" }}
        <li>
          <a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a>
          {{ partial "post-language-switcher.html" . }}
          {{ partial "post-info.html" . }}
        </li>
      {{ end }}
      <ol>
  </section>
{{ end }}