about summary refs log tree commit diff
path: root/layouts/_default/single.html
blob: bd91a76300e4945ff0e79a6daefae9e301ca535e (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 class="post h-entry">
    <header class="post-header">
      <h1 class="p-name post-title{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
      {{ partial "post-language-switcher.html" . }}
    </header>
    <div class="content e-content">
      {{ .Content }}
    </div>
    {{ partial "post-info.html" . }}
  </article>

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

  {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
    {{ partial "post-pagination.html" . }}
  {{ end }}

{{ end }}