{{ define "main" }} {{ partial "scrolling-image-header" . }}
{{ block "content" . }} {{ .Content }} {{ end }}
{{ range .Pages }}
{{ partial "category-button" . }} {{ with .Param "fa-thumbnail" }}
{{- $fontAwesomePath := print "assets/graphics/fa/" . ".svg" -}} {{- readFile $fontAwesomePath | safeHTML -}}
{{ end }} {{/* Thumbnail images should be stored as 'thumbnail'.* in the page bundle, but historically they might have been referenced as 'thumbnail' in the front matter, or (even more historically) as 'cardImage'. Use scratch to normalize all these different systems. */}} {{ $bundleGlob := "thumbnail.*" }} {{ $frontThumbGlob := print "images/" (.Params.thumbnail) ".*" }} {{ $frontCardGlob := print "images/" (.Params.cardImage) ".jpg" }} {{ $allThumbnailGlob := print "{" $frontThumbGlob "," $frontCardGlob "," $bundleGlob "}" }} {{ with .Resources.GetMatch $allThumbnailGlob }} {{ $thumbnail := . }} {{ $thumbnailResized := $thumbnail.Resize "600x" }}
Thumbnail of {{ .Title }}
{{ end }}
{{/* Prefer full-text links over local ones */}}
{{ $link := default .RelPermalink (index .Params "link") }}

{{ .Title }}

{{ dateFormat "02 Jan 2006" .Date }}
{{ range (.GetTerms "people") }} {{ .LinkTitle }} {{ end }}

{{ .Summary }} Read more »

{{ end }}
{{ end }}