{{ if eq .Type "tools" }} {{ $tool := printf "misc/%s" .Params.tool }} {{ partial $tool . }} {{ else }} {{ partial "contentlayouts/article.html" (dict "context" . "type" "article") }} {{ end }} {{ end }} {{ define "pagefooter" }} {{ if and (ne .Section "misc") (eq .Type "tools") }} {{ end }} {{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{- partial "contentlayouts/menu.html" . }} {{ end }} {{ end }}