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/single.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'layouts/_default/single.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