{{ define "title" }}{{ .Title | plainify }} | {{ .Site.Title }}{{ end }} {{ define "head-description" }}{{ .Summary | plainify }}{{ end }} {{ define "main-class" }}--single layouts-default-single{{ end }} {{ define "header-scripts" }} {{ with .Params.locations }} {{ end }} {{ end }} {{ define "header-styles" }} {{ with .Params.styles }} {{ end }} {{ with .Params.locations }} {{ end }} {{ end }} {{ define "footer-scripts" }} {{ with .Params.locations }} {{ end }} {{ with .Params.scripts }} {{ if in . "mathjax" }} {{ end }} {{ if in . "charts" }} {{ $chartsConfigJS := $.Page.Resources.GetMatch "charts-init" | fingerprint }} {{ end }} {{ end }} {{ end }} {{ define "main-header" }}

{{ .Title | safeHTML }}

{{ with .Params.subtitle }}

{{ . | safeHTML }}

{{ end }}
{{ with .Resources.GetMatch .Params.featured_image }}

{{ if .Params.attrlink }}{{ end }} {{- .Params.Attr | safeHTML -}} {{ if .Params.attrlink }}{{ end }} {{ if .Params.attrlicence }} ({{ .Params.attrlicence }}){{ end }}

{{ end }}

~{{ .FuzzyWordCount | lang.NumFmt 0 }} words

Published:

Last modified: {{ .Lastmod.Format "January 2" }}{{ if in (slice 1 21 31) .Lastmod.Day}}st{{ else if in (slice 2 22) .Lastmod.Day}}nd{{ else if in (slice 3 23) .Lastmod.Day}}rd{{ else }}th{{ end }}, 1{{ .Lastmod.Format "2006" | lang.NumFmt 0 }} HE

{{ $post_age_in_years := math.Round ( div ( div ( now.Sub .PublishDate ).Hours 24 ) 365 ) }} {{ if ( or .Params.site .Params.controversial ( gt $post_age_in_years 2 ) ) }} {{ end }} {{ if .Params.notes }} {{ end }} {{ if and ( .TableOfContents ) ( ne .TableOfContents "" ) }} {{ end }}
{{ end }} {{ define "main-body" }}
{{- if ( or .Params.internal_links .Params.external_links ) -}}
{{- with .Params.internal_links -}}

Internal Links

{{- end -}} {{- with .Params.external_links -}}

External Links

{{- end -}}
{{- end -}} {{ .Content }}
{{ end }} {{ define "main-footer" }} {{ partial "post-meta.html" . }} {{ end }}