From 5987519fd621e0b56edcfaf68fa1cdfb63b684d7 Mon Sep 17 00:00:00 2001 From: Dave Derderian Date: Mon, 25 Mar 2019 11:56:59 +0900 Subject: [PATCH] add global, local, default TOC --- layouts/_default/single.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9ec206d..18221d4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,6 +22,17 @@ {{ if .Params.Toc }}
+ {{ if or $.Site.Params.TocTitle .Params.Toc }} +

+ {{ if .Params.TocTitle }} + {{ .Params.TocTitle }} + {{ else if $.Site.Params.TocTitle }} + {{ $.Site.Params.TocTitle }} + {{ else }} + Table of Contents + {{ end }} +

+ {{ end }} {{ .TableOfContents }}
{{ end }}