{{ define "main" }} <article class="post"> <header class="post-header"> <h1 class ="post-title">{{ .Title }}</h1> <div class="post-meta"> <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}</div> <div>Reading time: {{ .ReadingTime }} min</div>{{- with .Params.tags -}} <div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a> {{- end -}}{{- end -}}</div>{{- end -}} </div> </header> <div class="post-content">{{ .Content }}</div> </article>{{ end }}