{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}} {{- define "content" -}}
{{- /* Title */ -}}

{{ .Title }}

{{- /* Meta */ -}}
{{- $author := .Params.author | default .Site.Author.name -}} {{- $author_link := .Params.author_link | default .Site.Author.link | default .Site.BaseURL -}}   {{- with .Params.categories -}} {{- end -}}
{{- $publish_date := .PublishDate.Format (.Site.Params.dateFormatToUse | default "2006-01-02") -}}   {{ T "wordCount" .WordCount }}  {{ T "readingTime" .ReadingTime }}  {{- if .Scratch.Get "production" | and .Site.Params.valine.enable | and .Site.Params.valine.visitor -}} {{ T "pageviews" | safeHTML }}   {{- end -}}
{{- /* Featured image */ -}} {{- with .Params.featured_image -}} {{- end -}} {{- /* TOC */ -}} {{- if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) -}}

{{ T "toc" }}

{{- $globalAutoCollapseToc := .Site.Params.auto_collapse_toc | default true }}
{{- .TableOfContents -}}
{{ T "toc" }}
{{- $toc := .TableOfContents -}} {{- $toc = replaceRE `id="TableOfContents"` `id="TableOfContentsMobile"` $toc -}} {{- $toc | safeHTML -}}
{{- end -}} {{- /* Content */ -}}
{{- partial "hook/content.html" .Content | safeHTML -}}
{{- /* Footer */ -}} {{- partial "post/footer.html" . -}} {{- /* Comment */ -}}
{{- if ( .Params.comment | default true ) -}} {{- partial "comment.html" . -}} {{- end -}}
{{- end -}}