about summary refs log tree commit diff
path: root/layouts/_default
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-12 11:19:57 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-12 11:19:57 +0700
commit981e41a9473654c4ee754f86a78d54c8c5cad9b2 (patch)
tree26fa9a31a9f11ec709615f1c96b0c26f2dc70538 /layouts/_default
parentd02a380caa30a804c927498e624927daa70b0b13 (diff)
downloadblog-981e41a9473654c4ee754f86a78d54c8c5cad9b2.tar.gz
Switch to Hugo, restructure the page
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..f74ec16
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,26 @@
+{{ define "main" }}
+{{ if .Menus }}
+<nav class="post-navigation">
+	{{ range .Menus }}
+	<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
+	{{ end }}
+</nav>
+{{ end }}
+
+<article class="post h-entry">
+	<header class="post-header">
+		<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
+	</header>
+	<div class="content e-content">
+		{{ .Content }}
+	</div>
+	{{ partial "postInfo.html" . }}
+</article>
+
+{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
+{{ partial "paginationPost.html" . }}
+{{ end }}
+
+{{ partial "custom-webring.html" }}
+
+{{ end }}