{{ define "main" }} {{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }}

{{ .Title }}

{{ if .Date }}
- Permalink
{{ end }} {{- if or .Params.categories .Params.tags -}} {{- end -}} {{- with .Site.Params.tagPostOlderThanXDays -}} {{- if and (gt $ageDays .) (eq $.Type "posts") -}} {{ partial "article-old-content.html" . }} {{- end -}} {{- end -}} {{- partial "article-precontent.html" . -}} {{- if .Params.toc -}}

Table of Content

{{- end -}}
{{ .Content }}
{{ partial "article-extra.html" . }} {{ if .Site.Params.enableNextPrevPages }} {{ partial "article-prevnext.html" . }} {{ end }} {{ if .Site.Params.enableRelatedPages }} {{ partial "article-related.html" . }} {{ end }}
{{ end }}