about summary refs log tree commit diff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..bd91a76
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,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 }}