From 5c9e0ecbb5e5d8c777bef62a0074c91b4ff80553 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 31 Jul 2023 15:32:53 +0700 Subject: Set chapterName variable to unclutter navigation --- layouts/_default/baseof.html | 5 +---- layouts/_default/list.html | 1 + layouts/_default/single.html | 7 ++++++- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index bd9f83d..f53932d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,12 +4,9 @@ SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy SPDX-License-Identifier: MIT */}} + -{{ with .Page.Params.Lang }} - -{{ else }} -{{ end }} {{ block "head" . }} {{ partial "head.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 46310ad..9a4672e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,6 +9,7 @@ SPDX-License-Identifier: MIT {{ .Content }} {{ if in .Params.categories "book" }} + {{ partial "post-navigation-top.html" . }}
{{ partial "toc.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 79b493d..a170823 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,12 @@ SPDX-License-Identifier: MIT {{ define "main" }}
-

{{ trim .Title " " }}

+

+ {{ trim .Title " " }} + {{ with .Params.chapterName }} + – {{ . }} + {{ end }} +

{{ i18n "word count" . }} ({{ i18n "reading time" .ReadingTime }}) -- cgit 1.4.1