{{- $currentUrl := .URL }} {{- $docs := where .Site.Pages "Section" "docs" }} {{- if and (.TableOfContents) (.Params.toc) }} {{- end }}