{{ if or (ne .Params.toc false) (ne .Params.toc "false") }}
Contents
{{ .TableOfContents }}
{{ end }}
{{- $postMetaTop := false }}
{{- $postMetaBottom := false }}
{{- range site.Params.position.postMeta }}
{{- if eq .content "top" }}
{{- $postMetaTop = true }}
{{- else if eq .content "bottom" }}
{{- $postMetaBottom = true }}
{{- end }}
{{- end }}
{{ if or (and site.Params.social.share (eq site.Params.position.social.share "top")) (and site.Params.position.postMeta $postMetaTop) (and (site.Params.position.postMeta.tags.content) (eq site.Params.position.postMeta.tags.content "top")) }}
{{- if and site.Params.position.postMeta $postMetaTop }}
{{- $wordCount := "" }}
{{- $readingTime := "" }}
{{- $author := "" }}
{{- $lastUpdated := "" }}
{{- if and site.Params.position.postMeta.wordCount.content (eq site.Params.position.postMeta.wordCount.content "top") }}
{{- $wordCount = print (.WordCount) " words" }}
{{- end }}
{{- if and site.Params.position.postMeta.readingTime.content (eq site.Params.position.postMeta.readingTime.content "top") }}
{{- $readingTime = print (lang.NumFmt 0 (div .WordCount 130)) " min read" -}}
{{- end }}
{{- if and site.Params.position.postMeta.author.content (eq site.Params.position.postMeta.author.content "top") }}
{{- $author = print "By " (default site.Params.meta.author .Params.author) }}
{{- end }}
{{- if .Lastmod }}
{{- if and site.Params.position.postMeta.lastUpdated.content (eq site.Params.position.postMeta.lastUpdated.content "top") }}
{{- $lastUpdated = print "Last updated: " (.Lastmod.Format "January 2, 2006") }}
{{- end }}
{{- end }}
{{- $postMetaPre := slice $author $wordCount $readingTime $lastUpdated }}
{{ $postMeta := slice }}
{{ range $postMetaPre }}
{{ if . }}
{{ $postMeta = $postMeta | append . }}
{{ end }}
{{ end }}
{{- delimit $postMeta " · " -}}
{{ end }}
{{ if and site.Params.social.share (ne site.Params.position.social.share "bottom") }}
Share on:
{{ if in site.Params.social.share "facebook" }}
{{ end }}
{{ if in site.Params.social.share "twitter" }}
{{ end }}
{{ if in site.Params.social.share "linkedin" }}
{{ end }}
{{ if in site.Params.social.share "telegram" }}
{{ end }}
{{ if in site.Params.social.share "whatsapp" }}
{{ end }}
{{ if in site.Params.social.share "reddit" }}
{{ end }}
{{ if in site.Params.social.share "email" }}
{{ end }}
{{ end }}
{{ if and (site.Params.position.postMeta.tags.content) (eq site.Params.position.postMeta.tags.content "top") }}
{{ if or (and site.Params.social.share (eq site.Params.position.social.share "bottom")) (and site.Params.position.postMeta $postMetaBottom) (and (site.Params.position.postMeta.tags.content) (eq site.Params.position.postMeta.tags.content "bottom")) }}
{{- if and site.Params.position.postMeta $postMetaBottom }}
{{- $wordCount := "" }}
{{- $readingTime := "" }}
{{- $author := "" }}
{{- $lastUpdated := "" }}
{{- if and site.Params.position.postMeta.wordCount.content (eq site.Params.position.postMeta.wordCount.content "bottom") }}
{{- $wordCount = print (.WordCount) " words" }}
{{- end }}
{{- if and site.Params.position.postMeta.readingTime.content (eq site.Params.position.postMeta.readingTime.content "bottom") }}
{{- $readingTime = print (lang.NumFmt 0 (div .WordCount 130)) " min read" -}}
{{- end }}
{{- if and site.Params.position.postMeta.author.content (eq site.Params.position.postMeta.author.content "bottom") }}
{{- $author = print "By " (default site.Params.meta.author .Params.author) }}
{{- end }}
{{- if .Lastmod }}
{{- if and site.Params.position.postMeta.lastUpdated.content (eq site.Params.position.postMeta.lastUpdated.content "bottom") }}
{{- $lastUpdated = print "Last updated: " (.Lastmod.Format "January 2, 2006") }}
{{- end }}
{{- end }}
{{- $postMetaPre := slice $author $wordCount $readingTime $lastUpdated }}
{{ $postMeta := slice }}
{{ range $postMetaPre }}
{{ if . }}
{{ $postMeta = $postMeta | append . }}
{{ end }}
{{ end }}
{{- delimit $postMeta " · " -}}
{{ end }}
{{ if and site.Params.social.share (eq site.Params.position.social.share "bottom") }}
Share on:
{{ if in site.Params.social.share "facebook" }}
{{ end }}
{{ if in site.Params.social.share "twitter" }}
{{ end }}
{{ if in site.Params.social.share "linkedin" }}
{{ end }}
{{ if in site.Params.social.share "telegram" }}
{{ end }}
{{ if in site.Params.social.share "whatsapp" }}
{{ end }}
{{ if in site.Params.social.share "reddit" }}
{{ end }}
{{ if in site.Params.social.share "email" }}
{{ end }}
{{ end }}
{{ if and (site.Params.position.postMeta.tags.content) (ne site.Params.position.postMeta.tags.content "top") }}