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-11 09:43:02 +00:00
|
|
|
<main class="h-feed hfeed" id="main">
|
2024-10-05 06:27:07 +00:00
|
|
|
<header class="list-header section">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="list-title p-name">{{.Title}}</h1>
|
|
|
|
{{ with (index .Site.Data.people "trwnh.com").a }}
|
|
|
|
<p class="list-author p-author">{{ partial "mf2/h-card.html" . }}</p>
|
|
|
|
{{ end }}
|
|
|
|
<p class="list-summary p-summary">{{ .Summary }}</p>
|
|
|
|
<div class="list-content e-content hugo-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
<p class="list-permalink">h-feed URL: <a href="{{.Permalink}}" rel="self" class="u-url">{{.Permalink}}</a></p>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
</header>
|
|
|
|
<section class="list-pages section">
|
|
|
|
<div class="container">
|
2024-10-12 18:45:14 +00:00
|
|
|
<ol class="list-of-pages-in-section">
|
|
|
|
{{ range .RegularPages }}
|
|
|
|
{{ if .Title }}
|
|
|
|
{{/* indieweb post kind is article */}}
|
|
|
|
<li class="list-of-pages-in-section__item">
|
|
|
|
<article class="h-entry hentry">
|
|
|
|
<p>
|
|
|
|
<span><time class="dt-published published" datetime="{{.Date.Format "2006-01-02T15:04:05Z"}}">{{.Date.Format "2006-01-02"}}</time>: <a class="p-name entry-title" href="{{.Permalink}}">{{.Title}}</a></span><br>
|
|
|
|
{{ if isset .Params "summary" }}
|
|
|
|
<span class="p-summary entry-summary">{{.Summary}}</span>
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
</article>
|
|
|
|
</li>
|
|
|
|
{{ else }}
|
|
|
|
{{/* indieweb post kind is probably note */}}
|
|
|
|
<li class="list-of-pages-in-section__item">
|
|
|
|
<article class="h-entry hentry">
|
|
|
|
<header>
|
|
|
|
<p><span><time class="dt-published published" datetime="{{.Date.Format "2006-01-02T15:04:05Z"}}">{{.Date.Format "2006-01-02"}}</time>: <a href="{{.Permalink}}">[link]</a></span></p>
|
|
|
|
</header>
|
|
|
|
<section class="p-content entry-content">
|
|
|
|
<p>
|
|
|
|
{{ .Content | strings.Truncate 1000 }}
|
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
{{ if not (eq .Content (.Content | strings.Truncate 1000)) }}
|
|
|
|
<footer>
|
|
|
|
<a href="{{.Permalink}}">Read more</a>
|
|
|
|
</footer>
|
|
|
|
{{ end }}
|
|
|
|
</article>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
2024-10-05 06:27:07 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
{{ end }}
|