bobatheme/layouts/_default/single.html

46 lines
1.0 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">
<h1>{{ .Title | markdownify }}</h1>
</div>
2021-10-05 19:12:10 -05:00
{{ if or .Date (.GetTerms "tags") }}
2021-10-02 16:22:52 -05:00
<div class="post-metadata">
{{ if .Date }}
2021-10-05 19:12:10 -05:00
2021-10-06 09:52:06 -05:00
<span class="date">
{{ partial "icon.html" "calendar" }}
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format "January 2, 2006" }}
</time>
2021-10-05 19:12:10 -05:00
2021-10-06 09:52:06 -05:00
{{ if ne .Lastmod .Date }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
(Modified {{ .Lastmod.Format "January 2, 2006" }})
</time>
{{ end }}
2021-10-05 19:12:10 -05:00
2021-10-06 09:52:06 -05:00
{{ end }}
</span>
2021-10-02 16:22:52 -05:00
<span class="tags">
{{ range (.GetTerms "tags") }}
2021-10-05 19:12:10 -05:00
<span class="tag">
{{ partial "icon.html" "tag" }}
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</span>
2021-10-02 16:22:52 -05:00
{{ end }}
</span>
</div>
2021-10-05 19:12:10 -05:00
{{ end }}
2021-10-01 14:12:39 -05:00
{{ if .Params.Toc }}
<div id="table-of-contents">
<h2>Table of Contents</h2>
2021-10-01 14:12:39 -05:00
{{ .TableOfContents }}
</div>
<hr>
2021-10-01 14:12:39 -05:00
{{ end }}
2021-09-25 20:52:01 -05:00
{{ .Content }}
{{ end }}