{{ $tocLevels := default (default 6 .Site.Params.geekblogToC) .Page.Params.geekblogToC }} {{ if and $tocLevels .Page.TableOfContents }}