{{- define "partials/taxonomies.html" -}} {{ "" | safeHTML }} {{- $taxonomy := .taxonomy }} {{- $tags := eq $taxonomy "tags"}} {{- $class := .class }} {{- $cover := .cover }} {{- $limit := .limit }} {{- with index site.Taxonomies $taxonomy }} {{- end }} {{- end }} {{- define "partials/terms.html" -}} {{ "" | safeHTML }} {{- $page := .page }} {{- $taxonomy := .taxonomy }} {{- $class := .class }} {{- with $page.GetTerms $taxonomy }} {{- end }} {{- end }} {{- define "partials/paginator.html" -}} {{ "" | safeHTML }} {{- $pagerSize := .Params.Paginate }} {{- $pages := .RegularPagesRecursive }} {{- if .IsHome }} {{- $pages = where site.RegularPages "Type" (or "post" "articles") }} {{- end }} {{- $paginator := .Paginate $pages }} {{- if $pagerSize }} {{- $paginator = .Paginate $pages $pagerSize }} {{- end }} {{- return $paginator }} {{- end }} {{- define "partials/coffeeStat.html" }} {{- $cups := 0 }} {{- range site.RegularPages }} {{- range .AllTranslations }} {{- with .Params.Coffee }} {{- $cups = add $cups . }} {{- end }} {{- end }} {{- end }} {{- return $cups }} {{- end }} {{- define "partials/hero.html" }} {{ "" | safeHTML }}
{{- $src := partial "page/cover.html" (dict "page" . ) }} {{- $alt := or .Params.Alt .Params.coverAlt .Params.imagesAlt }} {{- if $src }} {{ with $alt }}{{ . }}{{ end }} {{- end }}
{{- .Content }} {{- /* author page hero extras */}} {{- if and (eq .Kind "term") (eq .Data.Singular "author") }} {{- $authorName := .Title }} {{- $co := or site.Params.Author.coauthor site.Params.Author.collabolator }} {{- range $co }} {{- if eq $authorName .name }}

{{ or .bio .about }}

{{- end }} {{- end }} {{- $author := urlize .Title }} {{/* author's social links */}} {{ partial "menu.html" (dict "menuID" $author "open" "open" "page" .)}} {{- end }}
{{ end }} {{- define "partials/list/sections.html" -}} {{ "" | safeHTML }} {{- $page := .page }} {{- $class := .class }} {{- $limit := .limit }} {{- $cover := .cover }} {{- $getCover := .Resources.GetMatch "cover.*" }} {{- with $page.Sections }} {{- end }} {{ end }} {{- define "partials/listing.html" -}} {{ "" | safeHTML }} {{- $entry := .entry }} {{- if index site.Taxonomies $entry }} {{- end }} {{- end }} {{- define "partials/carousel.html" -}} {{ "" | safeHTML }} {{- $slides := where .Site.RegularPages "Type" "slide" }} {{- with $slides }} {{- end }} {{- end }}