{{- define "styles" -}}
{{- end -}}
{{- define "header" -}}
{{- partial "navigator-middle.html"
(dict
"Title" "Post"
"Subtitle" "Thread"
"Icon" "arrow-left"
"IconLabel" "Back"
"Href" ("" | relURL)
"Id" "back"
"Context" .
)
-}}
{{- end -}}
{{- define "middle" -}}
{{- partial "render-embed.html" . -}}
{{- $prevHref := "" | relURL -}}
{{- $nextHref := "" | relURL -}}
{{- $prevTitle := "hidden" -}}
{{- $nextTitle := "hidden" -}}
{{- with .NextInSection -}}
{{- $nextHref = $.NextInSection.Permalink -}}
{{- $nextTitle = $.NextInSection.Summary -}}
{{- end -}}
{{- with .PrevInSection -}}
{{- $prevHref = $.PrevInSection.Permalink -}}
{{- $prevTitle = $.PrevInSection.Summary -}}
{{- end -}}
{{- with or .Next .Prev -}}
{{- end -}}
{{- $filteredPages := partial "function-filters-content.html" (.Site.RegularPages.Related .) -}}
{{- $related := $filteredPages | first 3 -}}
{{- with $related -}}
{{- range $related -}}
{{- partial "render-embed.html" . -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- define "right" -}}
{{- partial "navigator-right.html" . -}}
{{- end -}}