about summary refs log tree commit diff
path: root/layouts/_default
diff options
context:
space:
mode:
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" . }}