{{ define "styles" }} {{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/post.scss" "dest" "css/post.css") }} {{ end }} {{ define "main" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}

{{.Title}}

{{ if .Date }} {{ end }}
{{ partial "anchored-headings.html" .Content }} {{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }}
{{ partial "tags.html" .}} {{ partial "post-pagination.html" .}} {{ template "_internal/disqus.html" . }}
{{ partial "social-icons.html" .}}

{{ replace .Site.Copyright "{year}" now.Year }}

{{ if .Params.toc }}
{{ if .Site.Params.showPageTitleInTOC }}
{{ .Title }}
{{ end }} {{ .TableOfContents }}
{{ end }}
{{ end }} {{ define "scripts" }} {{/* Hardcode a specific prismjs version to avoid a redirect on every page load. */}} {{/* Automatically loads the needed languages to highlight the code blocks. */}} {{ if .Params.toc }} {{ end }} {{ end }}