From 981e41a9473654c4ee754f86a78d54c8c5cad9b2 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 12 Apr 2021 11:19:57 +0700 Subject: Switch to Hugo, restructure the page --- layouts/_default/single.html | 26 ++++++++++++++++++++++++++ layouts/partials/footer-extra.html | 12 ++++++++++++ layouts/partials/head-extra.html | 5 +++++ layouts/partials/languageSelect.html | 10 ++++++++++ 4 files changed, 53 insertions(+) create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/footer-extra.html create mode 100644 layouts/partials/head-extra.html create mode 100644 layouts/partials/languageSelect.html (limited to 'layouts') 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 }} + +{{ end }} + +
+
+

{{ trim .Title " " }}

+
+
+ {{ .Content }} +
+ {{ partial "postInfo.html" . }} +
+ +{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} +{{ partial "paginationPost.html" . }} +{{ end }} + +{{ partial "custom-webring.html" }} + +{{ end }} diff --git a/layouts/partials/footer-extra.html b/layouts/partials/footer-extra.html new file mode 100644 index 0000000..bef79ed --- /dev/null +++ b/layouts/partials/footer-extra.html @@ -0,0 +1,12 @@ + diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html new file mode 100644 index 0000000..d0d0022 --- /dev/null +++ b/layouts/partials/head-extra.html @@ -0,0 +1,5 @@ + + + + + diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html new file mode 100644 index 0000000..029a34d --- /dev/null +++ b/layouts/partials/languageSelect.html @@ -0,0 +1,10 @@ +{{ if .IsTranslated }} +

{{ i18n "translations" }}

+ +{{ end }} -- cgit 1.4.1