2024-03-13 06:54:20 +00:00
|
|
|
{{ define "main" }}
|
2024-06-02 05:04:04 +00:00
|
|
|
<main class="blog single">
|
2024-03-13 06:54:20 +00:00
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<article class="post h-entry">
|
|
|
|
<header>
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
<p class="summary">{{.Summary}}</p>
|
|
|
|
{{ with .Params.cover }}
|
|
|
|
<img class="cover" src="{{.}}">
|
|
|
|
{{end}}
|
|
|
|
</header>
|
|
|
|
<aside class="meta">
|
|
|
|
<datetime class="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </datetime>
|
|
|
|
<p class="wordcount"> {{.WordCount}} words</p>
|
|
|
|
|
|
|
|
{{ with .Params.tags }}
|
|
|
|
<p class="tags-title">Keywords</p>
|
|
|
|
<ul class="tags">
|
|
|
|
{{ range . }}
|
|
|
|
<li><a href='{{"tags/" | absURL }}{{. | urlize}}'>{{.}}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
2024-03-14 23:29:33 +00:00
|
|
|
|
2024-03-21 23:04:33 +00:00
|
|
|
{{- if .Params.series -}}
|
|
|
|
{{- with index (.GetTerms "series") 0 -}}
|
|
|
|
<div class="notice--info">
|
|
|
|
<p>This post is part of the <a href="{{ .Permalink }}" style="font-weight: bold">{{ .LinkTitle }}</a> series.</p>
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2024-03-14 23:29:33 +00:00
|
|
|
{{ if ne .TableOfContents "<nav id=\"TableOfContents\"></nav>" }}
|
|
|
|
<p class="toc-title">Table of contents:</p>
|
2024-03-13 06:54:20 +00:00
|
|
|
{{ .TableOfContents }}
|
2024-03-14 23:29:33 +00:00
|
|
|
{{ end }}
|
2024-03-13 06:54:20 +00:00
|
|
|
</aside>
|
|
|
|
<section class="content">
|
|
|
|
{{ .Content }}
|
|
|
|
</section>
|
2024-03-21 23:04:33 +00:00
|
|
|
<footer>
|
|
|
|
{{- if .Params.series -}}
|
|
|
|
<div class="post-series">
|
|
|
|
{{- $series := or (where .Site.RegularPages.ByDate ".Params.series" "intersect" .Params.series) (where .Site.RegularPages.ByDate ".Params.series" "eq" .Params.series) -}}
|
|
|
|
{{- with $series -}}
|
|
|
|
<h3 id="series">This series</h3>
|
|
|
|
<ol>
|
|
|
|
{{- range . -}}
|
|
|
|
<li>
|
|
|
|
{{- if eq .File.UniqueID $.File.UniqueID -}}
|
|
|
|
<b>{{ .Title }}</b>
|
|
|
|
{{- else -}}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
</ol>
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|
|
|
|
</footer>
|
2024-03-13 06:54:20 +00:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|