about summary refs log tree commit diff
path: root/layouts/_default/single.html
blob: 3dc85e74c8622fb2e20aa0735c6e6f889c81de18 (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
{{/*
SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org>

SPDX-License-Identifier: MIT
*/}}

{{ define "main" }}
  <article>
    <header>
      <h1>{{ trim .Title  " " }}</h1>
      {{ .WordCount }} words
      ({{ div .WordCount 240}}~{{ div .WordCount 180}} minutes reading)

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


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

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

{{ end }}