18 lines
539 B
HTML
18 lines
539 B
HTML
{{ define "main" }}
|
|||
|
|
<h1>{{ .Title }}</h1>
|
||
|
|
{{ with .Content }}{{ . }}{{ end }}
|
||
|
|
|
||
|
|
{{ if .Pages }}
|
||
|
|
<div class="page-list">
|
||
|
|
{{ range .Pages.ByDate.Reverse }}
|
||
|
|
<article class="page-list-item">
|
||
|
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||
|
|
{{ with .Date }}<p class="page-meta">{{ .Format "January 2, 2006" }}</p>{{ end }}
|
||
|
|
{{ with .Summary }}<p>{{ . | plainify }}</p>{{ end }}
|
||
|
|
</article>
|
||
|
|
{{ end }}
|
||
|
|
</div>
|
||
|
|
{{ else }}
|
||
|
|
<p>No pages found.</p>
|
||
|
|
{{ end }}
|
||
|
|
{{ end }}
|