{{ define "main" }}

{{ .Title }}

Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} DRAFT {{ end }}
{{ if isset .Params "tldr" }}
tl;dr: {{ .Params.tldr }}
{{ end }}
{{ .Content }}
{{- $.Scratch.Set "isDisqus" true -}} {{ if not .Site.Config.Services.Disqus.Shortname }} {{- $.Scratch.Set "isDisqus" false -}} {{ end }} {{- if eq ($.Scratch.Get "isDisqus") true -}} {{- partial "disqus.html" . -}} {{- end -}}
{{ end }}