{{ $isHomePage := eq .Title .Site.Title }} {{ if .Params.subtitle }} {{ else }} {{ end }}{{ if .Keywords }} {{ else if .Params.tags }} {{ end }} {{ if .Params.bigimg }} {{- $image := resources.Get (printf "%s%s" "bigimg/" .Params.bigimg ) -}} {{ if eq $image nil }} {{ else }} {{- $imgsmall := $image.Resize "768x jpg q70" }} {{- $imgmedium := $image.Resize "960x jpg q85" }} {{ end }} {{ end }} {{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} {{ if $related }} {{ range $related }} {{ end }} {{ end }} {{ with .Params.tags }}{{ range first 6 . }} {{ end }}{{ end }} {{ $ISO8601 := "2006-01-02T15:04:05-07:00" }} {{ $logo := "img/avatar-icon.png" }} {{ if .Params.bigimg }} {{- $image := printf "%s%s" "bigimg/" .Params.bigimg -}} {{ else }} {{ end }}