65 lines
2 KiB
HTML
65 lines
2 KiB
HTML
{{ define "head" }}
|
|
{{ end }}
|
|
|
|
{{ define "body" }}
|
|
<body class="layout-_default-single">
|
|
<main>
|
|
<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" }}
|
|
{{ with .Summary | safeHTML }}
|
|
<p class="page-summary p-summary entry-summary">{{.}}</p>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ with (index .Site.Data.people "trwnh.com").a }}
|
|
<p class="page-author p-author">
|
|
{{ partial "mf2/h-card.html" . }}
|
|
</p>
|
|
{{ end }}
|
|
{{ with .Date }}
|
|
<p class="page-date">
|
|
<time class="dt-published published" datetime='{{.UTC.Format "2006-01-02T15:04:05Z0700"}}'>{{ .Format "3:04 AM" }}<br>{{ .Format "Mon Jan 2, 2006"}}</time>
|
|
</p>
|
|
{{ end }}
|
|
{{ with .Permalink }}
|
|
<p class="page-permalink"><a class="u-url url" href="{{.}}">[permalink]</a></p>
|
|
{{ end }}
|
|
{{/* {{ 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>
|
|
<hr>
|
|
</header>
|
|
{{ if .Params.toc }}
|
|
<input type="checkbox" id="toc-toggle">
|
|
<label for="toc-toggle" id="toc-toggle__label-show">Show TOC</label>
|
|
<label for="toc-toggle" id="toc-toggle__label-hide">Hide TOC</label>
|
|
<aside class="page-toc toc section">
|
|
<div class="container">
|
|
<details open>
|
|
<summary class="toc-title">Contents</summary>
|
|
{{ .TableOfContents }}
|
|
</details>
|
|
</div>
|
|
</aside>
|
|
{{ end }}
|
|
<section class="page-content section">
|
|
<div class="container e-content entry-content hugo-content">
|
|
{{ .Content }}
|
|
</div>
|
|
</section>
|
|
</article>
|
|
</main>
|
|
</body>
|
|
{{ end }}
|