about summary refs log tree commit diff
path: root/layouts/_default/single.html
blob: 16bf1ef0ad4f256c0873398d7cea066672eaf3d3 (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
24
25
26
27
28
29
30
{{/*
SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org>

SPDX-License-Identifier: MIT
*/}}

{{ define "main" }}
  <article id="main">
    <header>
      <h1>
        {{ trim .Title  " " }}
        {{ with .Params.chapterName }}{{ . }}
        {{ end }}
      </h1>
      {{ i18n "word count" . }}
      ({{ i18n "reading time" .ReadingTime }})

      {{ partial "post-language-switcher.html" . }}
      {{ partial "post-navigation-top.html" . }}
    </header>
    {{ .Content }}
  </article>


  {{ partial "single-extra.html" }}

  {{ partial "post-navigation-bottom.html" . }}

{{ end }}