5d986b13949cef9204ed7c135e244bf8b81e3f9f
{{ define "main" }}
{{ $dateFormat := i18n "date.format" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ if .Pages }}
{{ range .Pages.ByDate.Reverse }}
<article>
<h2>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</h2>
{{ if not .Date.IsZero }}
<p class="post-meta">
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format $dateFormat }}</time>
</p>
{{ end }}
{{ with .Summary }}
<p>{{ . | plainify | truncate 240 }}</p>
</article>
{{ else if eq .Section "posts" }}
<p class="empty-state">{{ i18n "posts.empty" }}</p>