{{with $favicon := .Site.Params.favicon -}} {{range $size := slice 16 32 -}} {{$image := (resources.Get $favicon).Resize (printf "%dx%d png" $size $size) -}} {{end -}} {{end -}} {{with .Description -}} {{end -}} {{$fontsStylesheet := resources.Get "style/theme-fonts.css" | resources.ExecuteAsTemplate "style/theme-fonts.css" . -}} {{$themeBaseStylesheet := resources.Get "style/theme-base.css" | resources.ExecuteAsTemplate "style/theme-base.css" . -}} {{$themeStylesheet := resources.Get "style/theme.css" | resources.ExecuteAsTemplate "style/theme.css" . -}} {{$stylesheets := slice $fontsStylesheet $themeBaseStylesheet $themeStylesheet -}} {{$page := . -}} {{$typeStylesheetName := printf "style/theme-%s.css" .Type -}} {{$typeStylesheetTemplate := resources.Get $typeStylesheetName -}} {{with $typeStylesheetTemplate -}} {{$stylesheets = $stylesheets | append (resources.ExecuteAsTemplate $typeStylesheetName $page .) -}} {{end -}} {{range .Site.Params.stylesheets -}} {{with resources.Get . | resources.ExecuteAsTemplate . $page -}} {{$stylesheets = $stylesheets | append . -}} {{end -}} {{end -}} {{$stylesheetsBundle := $stylesheets | resources.Concat "style/bundle.css" | minify | fingerprint -}} {{.Site.Title}}{{if not .IsHome}} – {{.Title}}{{end}}