{{ $scratch := newScratch }} {{ with .Params.Title }} {{ $scratch.Set "title" . }} {{ $scratch.Add "title" " | " }} {{ end }} {{ $scratch.Add "title" .Site.Title }} {{ if .Description }} {{ $scratch.Set "description" .Description}} {{ else if .Site.Params.description }} {{ $scratch.Set "description" .Site.Params.description }} {{ end }} {{ range .AllTranslations }} {{ end }} {{ with .Params.images }} {{ $image := index . 0 }} {{ else }} {{ end }} {{ with .OutputFormats.Get "RSS" }} {{ end }} {{ if eq .Section "post" }} {{ $paginator := .Paginate (where .Pages "Section" "post") }} {{ if $paginator }} {{ if $paginator.HasPrev }} {{end }} {{ if $paginator.HasNext }} {{end }} {{end }} {{ if .Params.authors }} {{ $authors := delimit .Params.authors ", " }} {{ else }} {{ $authors := .Site.Params.author }} {{ end }} {{ end }} {{ if ne .Section "post" }} {{ end }} {{ if .Site.Params.prismJS.enable }} {{ if .Site.Params.prismJS.theme }} {{ else }} {{ end }} {{ end }} {{ with index .Site.Data "panaetius-theme" }} {{ range $vendor := .assets }} {{ if $vendor.css }} {{ end }} {{ end }} {{ end }} {{- with .OutputFormats.Get "RSS" }} {{- end -}} {{- template "_internal/opengraph.html" . -}} {{- template "_internal/google_news.html" . -}} {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}}