{{ with .Params.images }} {{ range first 5 . }} {{ end }} {{ end }} {{ if .IsPage }} {{ with .Site.Params.facebook }} {{ end }} {{ range .Params.tags }} {{ end }} {{ else }} {{ end }} {{ with .Site.Params.themecolor }} {{ end }} {{ if .Description }} {{ else if .Site.Params.description }} {{ else if .IsPage }} {{ end }} {{ if .IsHome }} {{ i18n "home" }} | {{ .Site.Title }} {{ else if .Params.hide_site_title }} {{ .Page.Title }} {{ else if .Page.Title }} {{ .Page.Title }} | {{ .Site.Title }} {{ else }} {{ .Site.Title }} {{ end }} {{ with .Params.tags }} {{ end }} {{ $CSS := resources.Match "css/**.css" | resources.Concat "css/main.css" }} {{ range .Site.Params.customCSS }} {{ end }} {{ if eq .Permalink "/" }} {{ end }} {{ if isset .Params "canonical" }} {{ else }} {{ end }} {{ with $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} {{ if $paginator.HasPrev }} {{ end }} {{ if $paginator.HasNext }} {{ end }} {{ end }} {{ if isset .Params "image" }}