Files
structured-website-builder-…/hugo-html-builder/layouts/_default/list.html
T

18 lines
539 B
HTML
Raw Normal View History

2026-06-06 06:37:41 -06:00
{{ 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 }}