{{ define "main" }}
{{ $source := ($.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" }} {{ with $source }}
{{ $featured := .Fill (printf "910x280 %s" (default "Smart" .Params.anchor)) }} {{ default $.Title .Params.description }} {{ with $source.Params.credits }} Credits: {{ . | $.Page.RenderString | safeHTML }} {{ end }}
{{ end }}

{{ partial "title" . }}

{{ if or (eq .Type (default "posts" .Site.Params.GeekblogContentSection)) (eq .Type "post") }}
{{ partial "metadata.html" . }}
{{ end }}
{{ partial "content" . }}
{{ end }}