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

{{ .Title }}

{{- /* Meta */ -}}
{{- $author := .Params.author | default .Site.Author.name -}} {{- $authorLink := .Params.authorLink | default .Site.Author.link | default (relLangURL "/") -}}   {{- 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.featuredImage -}} {{- end -}} {{- /* TOC */ -}} {{- if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) -}}

{{ T "toc" }}

{{- $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default true }}
{{ T "toc" }}
{{- .TableOfContents -}}
{{- end -}} {{- /* Content */ -}}
{{- partial "function/content.html" .Content -}}
{{- /* Footer */ -}} {{- partial "post/footer.html" . -}} {{- /* Comment */ -}}
{{- if ( .Params.comment | default true ) -}} {{- partial "comment.html" . -}} {{- end -}}
{{- end -}}