{{ template "toc" . }}
diff --git a/layouts/_partials/docs/header.html b/layouts/_partials/docs/header.html
index 646b8ff..ad5582e 100644
--- a/layouts/_partials/docs/header.html
+++ b/layouts/_partials/docs/header.html
@@ -6,7 +6,7 @@
{{ partial "docs/title" . }}
diff --git a/layouts/_partials/docs/toc-show.html b/layouts/_partials/docs/toc-show.html
new file mode 100644
index 0000000..21122a1
--- /dev/null
+++ b/layouts/_partials/docs/toc-show.html
@@ -0,0 +1,5 @@
+{{ return default true (
+ and
+ (default .Site.Params.BookToC .Params.BookToC)
+ (not (eq .TableOfContents "
"))
+) }}
\ No newline at end of file