bobatheme/layouts/_default/single.html

37 lines
902 B
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-02 16:22:52 -05:00
<div class="post-metadata">
{{ if .Date }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
{{ .Date.Format "January 2, 2006" }}
</time>
{{ if ne .Lastmod .Date }}
( Modified
<time datetime="{{ .Lastmod.Format "January 2, 2006" }}" pubdate>
{{ .Lastmod.Format "January 2, 2006" }}
</time>
) <!-- I don't know how to get rid of the whitespace in between here,
so I'll just live with it for now. -->
{{ end }}
2021-10-02 16:22:52 -05:00
{{ end }}
<span class="tags">
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
</span>
</div>
2021-10-01 14:12:39 -05:00
{{ if .Params.Toc }}
<div id="table-of-contents">
<h3>Table of Contents</h3>
{{ .TableOfContents }}
</div>
{{ end }}
2021-09-25 20:52:01 -05:00
{{ .Content }}
{{ end }}