{{ printf `` | safeHTML }} Hugo {{- $title := .Site.Title -}} {{- if not (eq .Kind "home") }} {{- $title = printf `%s on %s` (partial "utils/title" .) $title -}} {{- end }} {{ $title }} {{- with .Site.Params.subtitle }} {{ . }} {{- end }} {{- $output_formats := .OutputFormats -}} {{- range $output_formats -}} {{- $rel := (or (and (eq "atom" (.Name | lower)) "self") "alternate") -}} {{- with $output_formats.Get .Name }} {{ printf `` .Permalink $rel .MediaType.Type .Name | safeHTML }} {{- end }} {{- end }} {{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- with .Site.Params.geekblogAuthor -}} {{- with index $.Site.Data.authors . }} {{ .name }} {{- with .email }} {{ . }} {{- end }} {{- end }} {{- end }} {{ .Permalink }} {{- $pages := where .RegularPages "Type" "in" .Site.Params.mainSections -}} {{- if (eq .Kind "home") -}} {{- $pages = where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}} {{- end -}} {{- range $page := $pages }} {{ partial "utils/title" . }} {{ .Permalink }} {{- with .Params.authors }} {{- range sort . }} {{- $author := index $.Site.Data.authors . }} {{ $author.name }} {{- end }} {{- end }} {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{- $img := "" -}} {{- with ($page.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" }} {{- $featured := .Fill (printf "910x280 %s" (default "Smart" .Params.anchor)) -}} {{- $img = printf `%s
` $featured.Permalink $featured.Width $featured.Height (default (partial "utils/title" $page) .Params.description) -}} {{- end }} {{ printf "%s%s" $img .Content | htmlEscape | safeHTML }} {{- with .Site.Taxonomies }} {{- range $taxo,$_ := . }} {{- with $page.Param $taxo }} {{- $taxo_list := . -}} {{- with $.Site.GetPage (printf "/%s" $taxo) }} {{- $taxonomy_page := . -}} {{- range $taxo_list }} {{- end }} {{- end }} {{- end }} {{- end }} {{- end }}
{{- end }}