2021-09-25 20:52:01 -05:00
|
|
|
{{ define "main" }}
|
2023-03-24 08:49:02 -05:00
|
|
|
<div class="page-title">
|
2021-11-22 02:21:15 -06:00
|
|
|
<h1>
|
|
|
|
{{ .Title | markdownify }}
|
|
|
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
|
|
|
</h1>
|
|
|
|
</div>
|
2021-09-27 14:16:52 -05:00
|
|
|
|
2023-03-24 08:49:02 -05:00
|
|
|
{{ partial "page-metadata/post-full.html" . }}
|
2022-04-19 17:51:03 -05:00
|
|
|
{{ partial "series-box.html" . }}
|
2021-10-23 00:03:44 -05:00
|
|
|
|
2021-11-22 02:21:15 -06:00
|
|
|
{{ if .Params.Toc }}
|
2021-11-23 19:06:26 -06:00
|
|
|
<div class="table-of-contents" aria-label="{{ i18n "aria_table_of_contents" }}">
|
2021-11-22 02:21:15 -06:00
|
|
|
<details>
|
|
|
|
<summary>{{ i18n "table_of_contents" }}</summary>
|
|
|
|
{{ .TableOfContents }}
|
|
|
|
</details>
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
2021-11-22 02:21:15 -06:00
|
|
|
<div class="table-of-contents print">
|
|
|
|
{{ i18n "table_of_contents" }}
|
|
|
|
{{ .TableOfContents }}
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-11-22 02:21:15 -06:00
|
|
|
{{ with .Resources.GetMatch "feature" }}
|
|
|
|
<div class="post-media">
|
2022-05-13 11:33:55 -05:00
|
|
|
{{ partial "figure.html" (dict "src" .) }}
|
2021-11-14 00:41:49 -06:00
|
|
|
</div>
|
2021-11-22 02:21:15 -06:00
|
|
|
{{ end }}
|
|
|
|
|
2022-05-22 19:51:16 -05:00
|
|
|
<article class="post-content">
|
2022-04-04 21:47:26 -05:00
|
|
|
{{ .Content }}
|
2022-05-22 19:51:16 -05:00
|
|
|
</article>
|
2021-11-22 02:21:15 -06:00
|
|
|
|
2022-04-30 21:23:45 -05:00
|
|
|
{{ partial "series-box.html" . }}
|
|
|
|
|
2021-11-22 02:21:15 -06:00
|
|
|
{{ if or .NextInSection .PrevInSection }}
|
|
|
|
<div class="prevnext">
|
|
|
|
{{ with .NextInSection }}
|
|
|
|
<a class="prev" href="{{ .Permalink }}">
|
|
|
|
<div class="prev-caption">
|
|
|
|
← {{ i18n "newer_post" }}
|
|
|
|
</div>
|
|
|
|
<div class="prev-post">
|
|
|
|
{{ .Title | markdownify }}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{ else }}
|
|
|
|
<div class="prev"></div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with .PrevInSection }}
|
|
|
|
<a class="next" href="{{ .Permalink }}">
|
|
|
|
<div class="next-caption">
|
|
|
|
{{ i18n "older_post" }} →
|
|
|
|
</div>
|
|
|
|
<div class="next-post">
|
|
|
|
{{ .Title | markdownify }}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{ else }}
|
|
|
|
<div class="next"></div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-10-23 22:51:13 -05:00
|
|
|
|
2022-04-30 21:23:45 -05:00
|
|
|
{{ if .Site.Params.shareButtons }}
|
|
|
|
{{ partial "share.html" . }}
|
|
|
|
{{ end }}
|
2022-04-19 17:51:03 -05:00
|
|
|
|
2022-05-04 18:45:02 -05:00
|
|
|
{{ if .Params.comments }}
|
|
|
|
<div class="comments">
|
|
|
|
{{ partial "comments.html" . }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-10-21 19:44:02 -05:00
|
|
|
{{ end }}
|
|
|
|
|
2022-05-04 18:45:02 -05:00
|
|
|
|
2023-10-21 19:44:02 -05:00
|
|
|
{{ define "post-body" }}
|
2022-04-12 21:57:58 -05:00
|
|
|
{{ $related := .Site.RegularPages.Related . | first 10 }}
|
|
|
|
{{ with $related }}
|
2023-10-21 19:44:02 -05:00
|
|
|
<div class="related-posts">
|
2022-04-12 21:57:58 -05:00
|
|
|
<hr>
|
2022-05-04 22:02:36 -05:00
|
|
|
<h1>{{ i18n "related_posts" }}</h1>
|
2022-05-06 21:14:42 -05:00
|
|
|
{{ partial "page-list.html" . }}
|
2021-11-22 02:21:15 -06:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-09-25 20:52:01 -05:00
|
|
|
{{ end }}
|