website/themes/hugo-theme-console/layouts/_default/list.html
2024-04-23 17:46:35 -04:00

20 lines
492 B
HTML

{{ define "main" }}
<h1>{{ .Page.Title }}</h1>
<br/>
{{ .Content }}
<div class="posts-list">
{{ range sort .Data.Pages "Date" "desc" }}
{{ if not .Params.private }}
<div class="post">
<p>
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
{{ .Summary }}
</p>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}