{{ define "main" }}

{{ .Title }}

{{ partial "micro.html" . }}
{{ if eq .Type "post" }} {{.Site.Params.Author.name }} | {{ $configDateFormat := .Site.Params.dateFormat | default ":date_medium" }} {{- with .Date }} {{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }} | {{ end -}} {{ $published := .PublishDate }} {{ $modified := .GitInfo.AuthorDate }} {{ if ge $modified $published }} {{ $published := .PublishDate | time.Format ":date_medium" }} {{ $modified := .Lastmod | time.Format ":date_medium" }} {{ if ne $published $modified }} {{- with .Lastmod }} {{ $ISO_time := dateFormat "2006-01-02T15:04:05-07:00" . }} | {{ end -}} {{ end -}} {{ end -}} Reading time {{.ReadingTime}} minutes | Word count {{.WordCount}} {{ end }} {{- partial "tags.html" . -}} {{ partial "series.html" . }}

{{ $image := .Resources.GetMatch "{cover.webp,cover.jpg,cover.png,cover.jpeg}" }} {{ if $image }}
{{ $resource := imageConfig (add "/content/" $image.RelPermalink) }}
Card image cap {{if .Params.feature_link}} {{.Params.feature_text}} {{end}}
{{end}}
{{ partial "toc.html" .}}
{{- partial "bridgy.html" . -}} {{ .Content }}
{{ partial "series.html" . }} {{ partial "share-buttons" . }} {{ partial "cite" . }} {{- partial "syndication.html" . -}} {{- partial "comments.html" . -}}
{{ end }}