{{ if isset .Site.Params "avatar" }}
avatar
{{ end }}

{{- if .Site.Params.headerTitle -}} {{- .Site.Params.headerTitle -}} {{- else -}} Set headerTitle in the config to display {{- end -}} {{- .Site.Params.motto | safeHTML -}}

{{ if gt (len (where .Site.RegularPages "Section" "==" "posts")) 0 }} {{ end }}
{{ if .Site.Taxonomies.tags }} {{ $tags := slice }} {{ $first := slice }} {{ $rest := slice }} {{ range .Site.Taxonomies.tags }} {{ $tags = $tags | append (dict "title" .Page.Title "link" .Page.RelPermalink) }} {{ end }} {{ $sum := len $tags }} {{ $maxTags := .Site.Params.maxTags }} {{ if $maxTags }} {{ $first = first $maxTags $tags }} {{ $rest = last (sub $sum $maxTags) $tags }}
{{ range $tag := $first }} {{ $title := index $tag "title" }} {{ $link := index $tag "link" }} {{ $title }} {{ end }}
{{ else }} {{ $rest = $tags }} {{ end }}
{{ range $tag := $rest }} {{ $title := index $tag "title" }} {{ $link := index $tag "link" }} {{ $title }} {{ end }}
{{ if $maxTags }}
{{ end }} {{ end }}