trwnh.com/unified.test.hugo/layouts/_default/sitemap.html

45 lines
874 B
HTML
Raw Normal View History

{{ define "body" }}
<body class="layout-_default-sitemap">
<main>
<header>
<div class="container">
<h1>{{.Title}}</h1>
<p>alternate formats: <a href="/sitemap.xml">[XML]</a></p>
</div>
</header>
<hr>
<section>
<div class="container">
<header>
<h2>most recently updated</h2>
</header>
<ul class="page-list">
2024-11-13 17:24:48 +00:00
{{ range where .Site.Pages "Sitemap.Disable" "ne" true }}
{{- if .Permalink -}}
<li>
<a href="{{.Permalink}}">
{{.RelPermalink}}
</a>
<br>
<span>{{ .Lastmod.UTC.Format "2006-01-02" }}</span>
</li>
{{ end }}
{{ end }}
</ul>
</div>
</section>
</main>
<style>
.page-list {
display: flex;
flex-flow: column;
gap: 1rem;
2024-10-16 05:34:37 +00:00
margin-block-start: 1rem;
}
hr {
2024-10-16 05:34:37 +00:00
margin-block-start: 1rem;
margin-block-end: 1rem;
}
</style>
</body>
{{ end }}