{{ define "content" }} {{ if .Layout }} {{ $partial := printf "layout/%s" .Layout }} {{ partial $partial (dict "context" . "content" .Content) }} {{ end }} {{ end }} {{ define "sidebar" }} {{ if ne .Type "tools" }} {{ end }} {{ end }} {{ define "pagefooter" }} {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }}