about summary refs log tree commit diff
path: root/layouts/_default
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-31 15:32:53 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-31 15:32:53 +0700
commit5c9e0ecbb5e5d8c777bef62a0074c91b4ff80553 (patch)
tree8163add677ad3c3f563af8a06ab16ee4eba3fd0a /layouts/_default
parentdcbadc3b6117f23107822d80e2d78a365b3970fe (diff)
downloadvictor-5c9e0ecbb5e5d8c777bef62a0074c91b4ff80553.tar.gz
Set chapterName variable to unclutter navigation
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html5
-rw-r--r--layouts/_default/list.html1
-rw-r--r--layouts/_default/single.html7
3 files changed, 8 insertions, 5 deletions
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 <huyngo@disroot.org>
 SPDX-License-Identifier: MIT
 */}}
 
+
 <!DOCTYPE html>
-{{ with .Page.Params.Lang }}
-<html lang="{{ . }}">
-{{ else }}
 <html lang="{{ .Page.Language.Lang }}">
-{{ end }}
 <head>
     {{ 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 }}
   </section>
   {{ if in .Params.categories "book" }}
+  {{ partial "post-navigation-top.html" . }}
   <section class="toc">
     {{ partial "toc.html" . }}
   </section>
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 }})