{{ define "main" }} {{ partial "header_image.html" . }} {{ if (eq .Kind "section") }} {{ $title := .Title }} {{ $section := .Section }} {{ with .File }} {{ if (eq .Path "") }}

Posts in ‘{{ .Dir | default $section }}’

{{ else }}

{{ $title }}

Posts in ‘{{ .Dir | default $section }}’

{{ end }} {{ end }} {{ else if (eq .Kind "taxonomy") }}

Posts with the {{ .Data.Singular }} ‘{{ .Data.Term }}’

{{ end }}
{{ with .Content }}

Content

{{ . }} {{ end }} {{ with .Resources }}

Resources

{{ end }} {{ if (not ($.Param "disable_debug")) }}

Page (Debug)

{{ partial "debugprint.html" . }} {{ with .Params }}

Page Params (Debug)

{{ partial "debugprint.html" . }} {{ end }} {{ with .Resources }}

Resources (Debug)

{{ partial "debugprint.html" . }} {{ end }}

File Object (Debug)

{{ with .File }} {{ if (ne .Path "") }} {{ partial "debugprint.html" . }} {{ else }} {{ partial "debugprint.html" (dict "UniqueID" .UniqueID "Path" .Path) }} {{ end }} {{ end }} {{ end }} {{ end }}