{{ define "main" }}
{{ if .Params.tags }}
{{ range .Params.tags }} {{ . }} {{ end }}
{{ end }}
{{ if .Params.image }} {{ .Title }} {{ end }} {{ if .Params.video }} {{ end }}
{{ .Content }}

{{ if $.Param "socialShare" }}
{{ end }}
{{ if ne .Type "page" }} {{ end }}

Read more


{{ if .Site.Params.showRelatedPosts }} {{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} {{ $.Scratch.Set "has_related" true }} {{ end }} {{ if $.Scratch.Get "has_related" }} {{ $num_to_show := .Site.Params.related_content_limit | default 3 }} {{ range first $num_to_show (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} {{ partial "post_preview.html" .}} {{ end }} {{ end }} {{ end }}
{{ if (.Params.comments) | or (and (or (not (isset .Params "comments")) (eq .Params.comments nil)) (and .Site.Params.comments (ne .Type "page"))) }} {{ if .Site.DisqusShortname }} {{ if .Site.Params.delayDisqus }}
{{ else }}
{{ template "_internal/disqus.html" . }}
{{ end }} {{ end }} {{ end }}
{{ end }}