{{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
{{ $title }}
{{ $image := "" }} {{ if (.Resources.ByType "image").GetMatch "*featured*" }} {{ $image = (.Resources.ByType "image").GetMatch "*featured*" }} {{ else if resources.Get (index .Params.images 0) }} {{ $image = resources.Get (index .Params.images 0) }} {{ end }} {{ if and $image (ne $image.MediaType.SubType "svg") }} {{ $image := $image.Fit (default "768x400" $.Params.image_size) }}
{{ else }}
{{ end }} {{ $desc := "" }} {{/* Generate page description. */}} {{ if .Params.description }} {{ $desc = .Params.description }} {{ else if .Params.subtitle }} {{ $desc = .Params.subtitle }} {{ else if .IsPage }} {{ $desc = .Summary }} {{ else if .Params.excerpt }} {{ $desc = .Params.excerpt }} {{ else }} {{ $desc = site.Params.description }} {{ end }}
{{- if .IsPage }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{ with .PublishDate }}
{{ end }} {{ with .Lastmod }}
{{ end }} {{- end -}} {{- with .Params.audio }}
{{ end }} {{- with .Params.videos }} {{- range . }}
{{ end }} {{ end }} {{ if .IsTranslated }} {{ range .Translations }}
{{ end }}
{{ end }} {{- /* If it is part of a series, link to related articles */}} {{- $permalink := .Permalink }} {{- $siteSeries := .Site.Taxonomies.series }} {{- if $siteSeries }} {{ with .Params.series }} {{- range $name := . }} {{- $series := index $siteSeries ($name | urlize) }} {{- range $page := first 6 $series.Pages }} {{- if ne $page.Permalink $permalink }}
{{ end }} {{- end }} {{ end }} {{ end }} {{- end }}