single.html (253B)
1 {{- define "content" -}} 2 <article> 3 <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> 4 {{- if not .Date.IsZero }} 5 {{ dateFormat (default "2006-01-02" .Site.Params.dateFormat) .Date }} 6 {{- end }} 7 {{ .Content -}} 8 </article> 9 {{- end }}