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-08-04 15:19:35 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-08-04 15:19:35 +0700
commit743ec02a6980c4ee0fbd9f2cb5f23b568dc6d706 (patch)
tree3d9efae1a8b3c3724844cece5d4e4c13c2ca9331 /layouts/_default
parentb472b8a7485a560740000f945f6e2fef3829fbb5 (diff)
downloadvictor-743ec02a6980c4ee0fbd9f2cb5f23b568dc6d706.tar.gz
Check site params only books
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/_default/list.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 86a13fe..f53932d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,7 @@ SPDX-License-Identifier: MIT
 <html lang="{{ .Page.Language.Lang }}">
 <head>
     {{ block "head" . }}
-        {{ partialCached "head.html" . }}
+        {{ partial "head.html" . }}
     {{ end }}
 </head>
 <body>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0f104a4..6dbd464 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,10 +8,10 @@ SPDX-License-Identifier: MIT
   <section class="index-content" id="main">
     {{ .Content }}
   </section>
-  {{ if in .Params.categories "book" }}
+  {{ if or .Site.Params.OnlyBooks (in .Params.categories "book") }}
   {{ partial "post-navigation-top.html" . }}
   <section class="toc">
-    {{ partial "toc.html" (dict "content" . "currentLink" .RelPermalink) }}
+    {{ partial "toc.html" . }}
   </section>
   {{ else if in .Params.categories "blog" }}
     {{ partial "feed.html" . }}