bobatheme/layouts/_default/single.html

28 lines
498 B
HTML
Raw Permalink 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" "edit" }}{{ end }}
2021-10-10 17:28:05 -05:00
</h1>
2021-10-02 16:22:52 -05:00
</div>
{{ partial "post-metadata.html" . }}
2021-10-01 14:12:39 -05:00
{{ if .Params.Toc }}
<div id="table-of-contents">
<h2>{{ i18n "table_of_contents" }}</h2>
2021-10-01 14:12:39 -05:00
{{ .TableOfContents }}
</div>
{{ end }}
<hr>
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" . }}
</div>
{{ end }}
2021-09-25 20:52:01 -05:00
{{ .Content }}
{{ end }}