- {{ if eq .Params.showBookMenu true }}
+ {{ if or (eq (string .Params.showBookMenu) "true") (eq .Params.showBookMenu true) }}
{{ end }}
- {{ if eq .Params.showBookMenu true }}
+ {{ if or (eq (string .Params.showBookMenu) "true") (eq .Params.showBookMenu true) }}
{{ end }}
{{ .Title }}
{{ $siteLanguage := string $.Site.Language }}
{{ if ne $siteLanguage "en" }}
{{ end }}
{{ if .Params.copyright }}
Copyright © {{ .Params.copyright }}
{{ end}}
{{ if isset .Params "trademarks" }}
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
{{ i18n "toc" }}
{{ .TableOfContents }}
{{ if $.Site.Params.isOnline }}
{{ if .Params.add_split_page_link }}
{{ end }}
{{ if .Params.add_single_page_link }}
{{ end }}
{{ end }}
{{ .Content }}
{{ if .GitInfo }}
{{ end }}
{{ end }}
diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html
index 08672d3097..ccc0152d0b 100644
--- a/documentation/themes/beastie/layouts/books/single.html
+++ b/documentation/themes/beastie/layouts/books/single.html
@@ -1,149 +1,149 @@
{{ define "main" }}
- {{ if eq .Params.showBookMenu true }}
+ {{ if or (eq (string .Params.showBookMenu) "true") (eq .Params.showBookMenu true) }}
{{ end }}
- {{ if eq .Params.showBookMenu true }}
+ {{ if or (eq (string .Params.showBookMenu) "true") (eq .Params.showBookMenu true) }}
{{ end }}
{{ .Title }}
{{ $siteLanguage := string $.Site.Language }}
{{ if ne $siteLanguage "en" }}
{{ end }}
{{ if .Params.copyright }}
Copyright © {{ .Params.copyright }}
{{ end}}
{{ if isset .Params "trademarks" }}
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
{{ i18n "toc" }}
{{ .TableOfContents }}
{{ if $.Site.Params.isOnline }}
{{ if .Params.add_split_page_link }}
{{ end }}
{{ if .Params.add_single_page_link }}
{{ end }}
{{ end }}
{{ .Content }}
{{ if .GitInfo }}
{{ end }}
{{ end }}