{{ define "head" }} {{ with .Params.author }} {{ end }} {{ end }} {{ define "main" }}

{{ .Title }}

{{ if and .Params.featured_image (not .Params.cover_image) }} {{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }} {{ if $featuredImage }} {{ $featuredImage = $featuredImage.Resize "900x" }}
{{ with .Params.featured_image.caption }}
{{ . }}
{{ end }}
{{ end }} {{ end }} {{ if .Params.cover_image }} {{ $img := .Resources.GetMatch (.Params.cover_image.src | safeURL) }} {{ if $img }} {{ $img = $img.Resize "900x" }}
{{ with .Params.cover_image.caption }}
{{ . }}
{{ end }}
{{ end }} {{ end }} {{ range .Params.tags }} {{ . }} {{ end }}
{{ .Content }}
{{ with .Params.author }} {{ end }}
{{ end }}