24 lines
834 B
HTML
24 lines
834 B
HTML
|
{{ define "page" }}
|
||
|
<content>
|
||
|
<h1>{{ .Title }}</h1>
|
||
|
<p>{{ .Content }}</p>
|
||
|
<h2>Latest posts</h2>
|
||
|
{{ range .Pages }}
|
||
|
<div class="section-page-item">
|
||
|
<h3>{{ .Title }}</h3>
|
||
|
<div class="details">
|
||
|
<time class="float-left">{{ .PublishDate | time.Format ":date_medium" }}</time>
|
||
|
{{- if .Site.Params.Display.ReadingTime -}}
|
||
|
<div class="read-time float-left"> • {{ partial "reading-time.html" . }}</div>
|
||
|
{{- end -}}
|
||
|
{{- if and .Site.Params.Display.Author .Page.Params.Author -}}
|
||
|
<div class="author float-left"> • by {{ .Page.Params.Author }}</div>
|
||
|
{{- end -}}
|
||
|
</div>
|
||
|
|
||
|
<div class="summary">{{ .Summary }}</div>
|
||
|
<a href="{{ .RelPermalink }}">Read more →</a>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</content>
|
||
|
{{ end }}
|