2021-09-25 20:52:01 -05:00
|
|
|
{{ define "main" }}
|
2021-10-02 16:22:52 -05:00
|
|
|
<div class="post-title">
|
2021-10-10 17:28:05 -05:00
|
|
|
<h1>
|
|
|
|
{{ .Title | markdownify }}
|
2021-10-26 18:50:48 -05:00
|
|
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
2021-10-10 17:28:05 -05:00
|
|
|
</h1>
|
2021-10-02 16:22:52 -05:00
|
|
|
</div>
|
2021-09-27 14:16:52 -05:00
|
|
|
|
2021-10-09 18:08:27 -05:00
|
|
|
{{ partial "post-metadata.html" . }}
|
2021-09-27 14:16:52 -05:00
|
|
|
|
2021-11-15 21:06:53 -06:00
|
|
|
|
2021-11-13 23:31:20 -06:00
|
|
|
{{ with (.GetTerms "series") }}
|
2021-11-15 21:06:53 -06:00
|
|
|
|
|
|
|
{{ $series := slice }}
|
2021-11-13 23:31:20 -06:00
|
|
|
{{ range . }}
|
2021-11-15 21:06:53 -06:00
|
|
|
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-13 23:31:20 -06:00
|
|
|
<div class="series-box">
|
|
|
|
{{ partial "icon.html" "info" }}
|
2021-11-15 21:06:53 -06:00
|
|
|
{{ if gt (len $series) 1 }}
|
|
|
|
This post is part of multiple series:
|
|
|
|
{{ else }}
|
2021-11-13 23:31:20 -06:00
|
|
|
This post is part of a series:
|
2021-11-15 21:06:53 -06:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ delimit $series ", " }}
|
2021-11-13 23:31:20 -06:00
|
|
|
</div>
|
2021-11-15 21:06:53 -06:00
|
|
|
|
2021-11-13 23:31:20 -06:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
2021-10-01 14:12:39 -05:00
|
|
|
{{ if .Params.Toc }}
|
2021-11-18 17:47:31 -06:00
|
|
|
<div class="table-of-contents">
|
2021-10-26 20:50:45 -05:00
|
|
|
<details>
|
|
|
|
<summary>{{ i18n "table_of_contents" }}</summary>
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
</details>
|
2021-10-01 14:12:39 -05:00
|
|
|
</div>
|
2021-11-18 17:47:31 -06:00
|
|
|
<div class="table-of-contents print">
|
|
|
|
{{ i18n "table_of_contents" }}
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>
|
2021-10-01 14:12:39 -05:00
|
|
|
{{ end }}
|
|
|
|
|
2021-10-19 14:01:35 -05:00
|
|
|
{{ with .Resources.GetMatch "feature" }}
|
2021-10-19 14:19:23 -05:00
|
|
|
<div class="post-media">
|
2021-10-27 09:48:13 -05:00
|
|
|
{{ partial "figure.html" (dict "src" . "border" true) }}
|
2021-10-19 14:19:23 -05:00
|
|
|
</div>
|
2021-10-19 14:01:35 -05:00
|
|
|
{{ end }}
|
|
|
|
|
2021-09-25 20:52:01 -05:00
|
|
|
{{ .Content }}
|
2021-10-23 00:03:44 -05:00
|
|
|
|
|
|
|
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
|
|
|
{{ with $related }}
|
|
|
|
<div class="see-also">
|
|
|
|
<h2>{{ i18n "see_also" }}</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{ range . }}
|
|
|
|
<li>
|
|
|
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-14 00:41:49 -06:00
|
|
|
{{ if or .NextInSection .PrevInSection }}
|
|
|
|
<div class="prevnext">
|
|
|
|
{{ with .NextInSection }}
|
|
|
|
<a class="prev" href="{{ .Permalink }}">
|
|
|
|
<div class="prev-caption">
|
2021-11-20 17:00:56 -06:00
|
|
|
← {{ i18n "newer_post" }}
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
|
|
|
<div class="prev-post">
|
2021-11-20 19:05:56 -06:00
|
|
|
{{ .Title | markdownify }}
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{ else }}
|
|
|
|
<div class="prev"></div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with .PrevInSection }}
|
|
|
|
<a class="next" href="{{ .Permalink }}">
|
|
|
|
<div class="next-caption">
|
2021-11-20 17:00:56 -06:00
|
|
|
{{ i18n "older_post" }} →
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
|
|
|
<div class="next-post">
|
2021-11-20 19:05:56 -06:00
|
|
|
{{ .Title | markdownify }}
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{ else }}
|
|
|
|
<div class="next"></div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-10-23 23:24:05 -05:00
|
|
|
{{ if .Params.comments }}
|
2021-11-18 17:26:02 -06:00
|
|
|
<div class="comments">
|
|
|
|
{{ partial "comments.html" . }}
|
|
|
|
</div>
|
2021-10-23 23:24:05 -05:00
|
|
|
{{ end }}
|
2021-10-23 22:51:13 -05:00
|
|
|
|
2021-09-25 20:52:01 -05:00
|
|
|
{{ end }}
|