{{ define "main" }} {{ .Title }} Home All Post {{ .Title }} {{ .PublishDate.Format "January 2, 2006" }} {{ .ReadingTime }} mins read {{ if .Params.tags }} {{ range (.GetTerms "tags") }} {{ .LinkTitle }} {{ end }} {{ end }} {{ if .Params.categories }} {{ range (.GetTerms "categories") }} {{ .LinkTitle }} {{ end }} {{ end }} {{ if .Params.toc }} Table of Contents {{ .TableOfContents | replaceRE "[[:space:]]*[[:space:]]*" "" | replaceRE "[[:space:]]*[[:space:]]*" "" | safeHTML }} {{ end }} {{ .Content }} {{ end }}