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

48 lines
1.6 KiB
HTML
Raw Normal View History

2024-10-05 06:27:07 +00:00
{{ define "body" }}
2024-10-05 19:56:14 +00:00
<body class="layout-_default-list">
2024-10-18 07:33:33 +00:00
{{ partial "site-header.html" . }}
<main class="h-feed hfeed" id="main">
{{ "<!-- the main header contains list metadata -->" | safeHTML }}
<header class="list-header section">
<div class="container">
<h1 class="list-title p-name">{{.Title}}</h1>
{{ with .Summary }}<p class="list-summary p-summary">{{ . }}</p>{{ end }}
{{- with (index .Site.Data.people "trwnh.com").a }}{{/* TODO: make author a variable instead of assuming it's always me */}}
<p class="list-author p-author">
{{- partial "mf2/h-card.html" . }}
</p>
{{ end -}}{{/* end with author h-card */ -}}
<div class="list-content e-content hugo-content">
{{- .Content }}
</div>
2024-10-16 07:34:56 +00:00
<a href="#items" class="skip-to-items">Skip to the feed items</a>
<p class="list-permalink">h-feed URL: <a href="{{.Permalink}}" rel="self" class="u-url">{{.Permalink}}</a></p>
2024-10-16 05:34:37 +00:00
{{- with .AlternativeOutputFormats }}
<div class="list-alt-formats">
<p>Alternate formats:</p>
<ul class="alt-formats-list">
{{- range . }}
<li class="alt-formats-list-item"><a href="{{.Permalink}}" rel="alternate">{{.Name}} ({{.MediaType}}): <span class="path">{{.RelPermalink}}</span></a></li>
{{- end }}
</ul>
</div>
2024-10-16 05:34:37 +00:00
{{- end }}
<hr>
2024-10-16 05:34:37 +00:00
</div>
</header>
{{ "<!-- list the pages in this section/taxonomy/term/etc -->" | safeHTML }}
2024-10-16 07:34:56 +00:00
<section class="list-pages section" id="items">
<div class="container">
<ol class="pages-list">
2024-10-18 07:33:33 +00:00
{{- range .RegularPagesRecursive }}
<li class="pages-list-item">
{{ partial "mf2/h-entry.html" . }}
2024-10-16 05:34:37 +00:00
</li>
{{- end }}{{/* end range over pages */ -}}
</ol>
</div>
</section>
</main>
2024-10-18 07:33:33 +00:00
{{ partial "site-footer.html" . }}
2024-10-05 06:27:07 +00:00
</body>
{{ end }}{{/* end define-body */ -}}