2023-03-18 16:15:46 +00:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
<div class="article-meta">
|
|
|
|
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
|
2023-03-18 22:46:32 +00:00
|
|
|
{{ with .Params.author }}<h2 class="author">By: {{ . }}</h2>{{ end }}
|
2023-03-18 20:31:10 +00:00
|
|
|
{{ if (gt .Date 0) }}<h4 class="date">Published: {{ .Date.Format "2006/01/02" }}</h4>{{ end }}
|
|
|
|
{{ if (gt .Lastmod 0) }}<h4 class="date">Last Modified: {{ .Lastmod.Format "2006/01/02" }}</h4>{{ end }}
|
2023-03-18 16:15:46 +00:00
|
|
|
<p class="terms">
|
|
|
|
{{ range $i := (slice "categories" "tags") }}
|
|
|
|
{{ with ($.Param $i) }}
|
|
|
|
{{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .Params.toc }}
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{{ .Content }}
|
|
|
|
</main>
|
|
|
|
|
2023-03-19 14:36:01 +00:00
|
|
|
{{ range first 1 (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
|
|
|
{{ $.Scratch.Set "has_related" true }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $.Scratch.Get "has_related" }}
|
|
|
|
<h2>See Also</h2>
|
|
|
|
<a href="#top">Back to top</a>
|
|
|
|
<ul>
|
|
|
|
{{ $num_to_show := .Site.Params.related_content_limit | default 15 }}
|
|
|
|
{{ range first $num_to_show (where (where .Site.Pages ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
|
2023-03-18 16:15:46 +00:00
|
|
|
{{ partial "footer.html" . }}
|