bobatheme/layouts/_default/single.html

60 lines
1.2 KiB
HTML
Raw Normal View History

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 }}
{{ 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>
{{ partial "post-metadata.html" . }}
2021-11-13 23:31:20 -06:00
{{ with (.GetTerms "series") }}
{{ range . }}
<div class="series-box">
{{ partial "icon.html" "info" }}
This post is part of a series:
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</div>
{{ end }}
{{ end }}
2021-10-01 14:12:39 -05:00
{{ if .Params.Toc }}
<div id="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>
{{ end }}
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" . "border" true) }}
</div>
{{ 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 }}
{{ if .Params.comments }}
2021-10-23 22:51:13 -05:00
{{ partial "comments.html" . }}
{{ end }}
2021-10-23 22:51:13 -05:00
2021-09-25 20:52:01 -05:00
{{ end }}