From fa98ab0589d4be1ca89a0538f6826b0037ff9821 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Thu, 27 Jul 2023 14:04:30 +0700 Subject: Set up layout and navigation --- layouts/partials/footer.html | 8 +++----- layouts/partials/head.html | 10 ++++++++++ layouts/partials/header.html | 3 +++ layouts/partials/post-info.html | 0 layouts/partials/post-language-switcher.html | 16 ++++++++++++++++ layouts/partials/post-navigation.html | 9 +++++++++ layouts/partials/single-extra.html | 0 7 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 layouts/partials/post-info.html create mode 100644 layouts/partials/post-language-switcher.html create mode 100644 layouts/partials/post-navigation.html create mode 100644 layouts/partials/single-extra.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8707172..619beab 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,19 +6,17 @@ SPDX-License-Identifier: MIT diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..86c4a33 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,10 @@ +{{ $style := resources.Get "css/readable.css" }} + + + + + + +{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..d015389 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,3 @@ + diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/post-language-switcher.html b/layouts/partials/post-language-switcher.html new file mode 100644 index 0000000..162cdf3 --- /dev/null +++ b/layouts/partials/post-language-switcher.html @@ -0,0 +1,16 @@ +{{ if .IsTranslated }} + {{ $pageLang := .Page.Lang}} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/post-navigation.html b/layouts/partials/post-navigation.html new file mode 100644 index 0000000..b88d91f --- /dev/null +++ b/layouts/partials/post-navigation.html @@ -0,0 +1,9 @@ + diff --git a/layouts/partials/single-extra.html b/layouts/partials/single-extra.html new file mode 100644 index 0000000..e69de29 -- cgit 1.4.1