birdcat.online/themes/aviary/layouts/artwork/list.html

14 lines
554 B
HTML
Raw Normal View History

2024-07-09 14:20:35 -04:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ range sort (.Pages) "Title" }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ $dateHuman := .Date.Format "January 2, 2006" }}
{{ $dateMachine := .Date.Format "2006-01-02T15:04:05-07:00" }}
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
{{ end }}
{{ end }}