{{ define "main" }} {{ .Content -}}
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{ range first 5 .Paginator.Pages }} {{ end }}
{{ .Title | markdownify}} {{ .Params.Date.Format "2006-01-02" }} {{ .Params.Author }} {{ range .Params.tags }} #{{ . }}  {{ end }}
{{ partial "pagination.html" . }} {{ partial "stickers.html" . }} {{ end }}