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-10-01 14:12:39 -05:00
|
|
|
{{ if .Params.Toc }}
|
|
|
|
<div id="table-of-contents">
|
2021-10-11 18:24:14 -05:00
|
|
|
<h2>{{ i18n "table_of_contents" }}</h2>
|
2021-10-01 14:12:39 -05:00
|
|
|
{{ .TableOfContents }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2021-10-09 20:33:42 -05:00
|
|
|
<hr>
|
|
|
|
|
2021-10-19 14:01:35 -05:00
|
|
|
{{ with .Resources.GetMatch "feature" }}
|
2021-10-19 14:19:23 -05:00
|
|
|
<div class="post-media">
|
|
|
|
{{ partial "figure.html" . }}
|
|
|
|
</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-10-23 23:24:05 -05:00
|
|
|
{{ if .Params.comments }}
|
2021-10-23 22:51:13 -05:00
|
|
|
{{ partial "comments.html" . }}
|
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 }}
|