diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-31 15:32:53 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-07-31 15:32:53 +0700 |
commit | 5c9e0ecbb5e5d8c777bef62a0074c91b4ff80553 (patch) | |
tree | 8163add677ad3c3f563af8a06ab16ee4eba3fd0a /layouts/_default/single.html | |
parent | dcbadc3b6117f23107822d80e2d78a365b3970fe (diff) | |
download | victor-5c9e0ecbb5e5d8c777bef62a0074c91b4ff80553.tar.gz |
Set chapterName variable to unclutter navigation
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 7 |
1 files changed, 6 insertions, 1 deletions
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" }} <article> <header> - <h1>{{ trim .Title " " }}</h1> + <h1> + {{ trim .Title " " }} + {{ with .Params.chapterName }} + – {{ . }} + {{ end }} + </h1> {{ i18n "word count" . }} ({{ i18n "reading time" .ReadingTime }}) |