tinytechbureau.com/themes/ttb/layouts/_default/list.html

17 lines
515 B
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<p><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></p>
<p>
{{ .Summary }}
{{- if .Truncated -}}
<a href='{{ .RelPermalink }}'>&hellip; Read more</a>
{{- end -}}
</p>
{{ end }}
{{ end }}