2024-10-15 08:09:14 +00:00
|
|
|
{{- define "head" }}
|
|
|
|
{{- end }}
|
2024-10-06 04:56:30 +00:00
|
|
|
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- define "body" }}
|
2024-10-05 19:56:14 +00:00
|
|
|
<body class="layout-_default-single">
|
2024-10-15 08:09:14 +00:00
|
|
|
<main id="main">
|
2024-10-16 05:34:37 +00:00
|
|
|
{{ "<!-- begin article -->" | safeHTML }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<article class="page h-entry hentry" {{- if .Param "autonumbering" }} autonumbering {{- end }}{{- if .Param "toc" }} has-toc {{- end }}>
|
|
|
|
<header class="page-header section">
|
|
|
|
<div class="container">
|
|
|
|
{{ with .Title | safeHTML }}<h1 class="page-title p-name entry-title">{{.}}</h1>{{ end }}
|
|
|
|
{{- if isset .Params "summary" }}{{/* only use explicitly-set summaries, not auto-generated ones */}}
|
|
|
|
{{ with .Summary | safeHTML }}<p class="page-summary p-summary entry-summary">{{.}}</p>{{ end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with (index .Site.Data.people "trwnh.com").a }}{{/* TODO: make author a variable instead of assuming it's always me */}}
|
|
|
|
<p class="page-author p-author">
|
|
|
|
{{- partial "mf2/h-card.html" . }}
|
|
|
|
</p>
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Date }}
|
|
|
|
<p class="page-date">
|
2024-10-16 05:34:37 +00:00
|
|
|
<time class="dt-published published" datetime="{{.Format "2006-01-02T15:04:05-07:00"}}"><span class="time">{{ .Format "3:04 PM" }}</span> on <span class="date">{{ .Format "Mon Jan 2, 2006"}}</span></time>
|
2024-10-15 08:09:14 +00:00
|
|
|
</p>
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Params.inReplyTo }}
|
|
|
|
{{- range . }}
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- $name := or .name "[link]" }}
|
|
|
|
{{- $href := "" }}
|
|
|
|
{{- if .pageRef }}
|
|
|
|
{{- $href = ref $ .pageRef }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $href = .url }}
|
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<p class="page-inreplyto">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" class="reply-icon" aria-hidden="true"><path fill="currentColor" d="M19 19v-4q0-1.25-.875-2.125T16 12H6.825l3.6 3.6L9 17l-6-6l6-6l1.425 1.4l-3.6 3.6H16q2.075 0 3.538 1.463T21 15v4z"/></svg>
|
2024-10-16 05:34:37 +00:00
|
|
|
<span>In response to: <a class="u-in-reply-to"{{with $href}} href="{{.}}"{{end}}><span>{{$name}}</span></a></span>
|
2024-10-15 08:09:14 +00:00
|
|
|
</p>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Permalink }}
|
|
|
|
<p class="page-permalink">h-entry URL: <a class="u-url url" href="{{.}}">{{.}}</a></p>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- with .Params.syndication }}
|
|
|
|
<aside class="page-syndication">
|
|
|
|
<p>This entry has been posted elsewhere:</p>
|
|
|
|
<ul class="syndication-list">
|
|
|
|
{{- range . }}
|
|
|
|
<li class="syndication-list-item">
|
|
|
|
<a{{with .url}} href="{{.}}" rel="syndication" class="u-syndication"{{end}}>{{or .name .url}}</a>
|
|
|
|
</li>
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
</aside>
|
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
{{/* {{ with .Params.source }}
|
|
|
|
{{ $type := (printf "%T" .) }}
|
|
|
|
{{ if eq $type "string"}}
|
|
|
|
{{ if (findRE "^http" .) }}
|
|
|
|
<p class="page-sourcelink"><a href="{{.}}">[source]</a></p>
|
|
|
|
{{ end}}
|
|
|
|
{{ end }}
|
|
|
|
{{ if eq $type "[]string"}}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }} */}}
|
|
|
|
</div>
|
2024-10-16 05:34:37 +00:00
|
|
|
<hr />
|
2024-10-15 08:09:14 +00:00
|
|
|
</header>
|
|
|
|
{{- if .Params.series }}
|
|
|
|
{{ "<!-- article aside: this article is part of a series -->" | safeHTML }}
|
|
|
|
<aside class="page-series section">
|
|
|
|
<div class="container">
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- with .Site.Taxonomies.series }}
|
|
|
|
{{- range $term, $weightedpages := . }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<p class="page-series__hint">This post is part of a series: <a href="{{.Page.Permalink}}">{{.Page.LinkTitle}}</a></p>
|
|
|
|
<ol class="series">
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- range $weightedpages.Pages.ByWeight.Reverse }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<li class="series-post">
|
|
|
|
{{- if eq .File.UniqueID $.File.UniqueID -}}
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- with .Params.series_part }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<span class="series-post__part">Part {{.}}: </span>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<span class="series-post__title current-post">{{.Title}}</span>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- else }}
|
|
|
|
{{- with .Params.series_part }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<span class="series-post__part">Part {{.}}: </span>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
<a href="{{.Permalink}}" class="series-post__link"><span class="series-post__title">{{.Title}}</span></a>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
</li>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
</ol>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2024-10-15 08:09:14 +00:00
|
|
|
</div>
|
2024-10-16 05:34:37 +00:00
|
|
|
<hr />
|
2024-10-15 08:09:14 +00:00
|
|
|
</aside>
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Params.toc }}
|
|
|
|
{{ "<!-- article nav/toc -->" | safeHTML }}
|
|
|
|
<input type="checkbox" id="toc-toggle">
|
|
|
|
<label for="toc-toggle" id="toc-toggle__label-show" role="button" tabindex=0>Show TOC</label>
|
|
|
|
<label for="toc-toggle" id="toc-toggle__label-hide" role="button" tabindex=0>Hide TOC</label>
|
|
|
|
{{ partial "components/table-of-contents.html" . }}
|
|
|
|
{{- end }}
|
|
|
|
{{ "<!-- article content -->" | safeHTML }}
|
|
|
|
<section class="page-content section">
|
|
|
|
<div class="container e-content entry-content hugo-content">
|
2024-10-16 05:34:37 +00:00
|
|
|
{{ replaceRE `(?s)<div class="footnotes".*` "" .Content | safeHTML -}}
|
2024-10-15 08:09:14 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{ "<!-- article footer -->" | safeHTML }}
|
|
|
|
<footer class="page-footer section">
|
|
|
|
<div class="container">
|
|
|
|
<hr />
|
|
|
|
{{- with (index (.RawContent | .RenderString | findRE `(?s)<div class="footnotes".*`) 0 | safeHTML) }}
|
|
|
|
<section id="footnotes">
|
|
|
|
<h2>Footnotes</h2>
|
|
|
|
{{ . | replaceRE `<hr>\n` "" | safeHTML -}}
|
|
|
|
</section>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</footer>
|
2024-10-15 08:09:14 +00:00
|
|
|
</article>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{ "<!-- end article -->" | safeHTML }}
|
2024-10-15 08:09:14 +00:00
|
|
|
</main>
|
2024-10-05 06:27:07 +00:00
|
|
|
</body>
|
2024-10-16 05:34:37 +00:00
|
|
|
{{ end }}
|