about summary refs log tree commit diff
path: root/layouts/_default/single.html
blob: a170823a57b323034fa548832679daa5b17653ac (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>
    <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 }}