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

48 lines
No EOL
1.6 KiB
HTML

{{ define "body" }}
<body class="layout-_default-list">
{{ 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>
<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>
{{- 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>
{{- end }}
<hr>
</div>
</header>
{{ "<!-- list the pages in this section/taxonomy/term/etc -->" | safeHTML }}
<section class="list-pages section" id="items">
<div class="container">
<ol class="pages-list">
{{- range .RegularPagesRecursive }}
<li class="pages-list-item">
{{ partial "mf2/h-entry.html" . }}
</li>
{{- end }}{{/* end range over pages */ -}}
</ol>
</div>
</section>
</main>
{{ partial "site-footer.html" . }}
</body>
{{ end }}{{/* end define-body */ -}}