blog-static/themes/vanilla/layouts/blog/single.html

24 lines
613 B
HTML
Raw Normal View History

2019-08-02 22:53:52 -07:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
<div class="post-subscript">
2020-05-04 03:23:55 -07:00
<p>
2019-08-02 22:53:52 -07:00
{{ range .Params.tags }}
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
</p>
2020-05-04 03:23:55 -07:00
<p>Posted on {{ .Date.Format "January 2, 2006" }}.</p>
2019-08-02 22:53:52 -07:00
</div>
<div class="post-content">
2020-06-30 22:11:27 -07:00
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
2020-06-24 22:46:22 -07:00
<div class="table-of-contents">
2020-06-30 22:11:27 -07:00
<div class="wrapper">
2020-06-24 22:46:22 -07:00
<em>Table of Contents</em>
{{ .TableOfContents }}
</div>
</div>
2020-06-30 22:11:27 -07:00
{{ end }}
2019-08-02 22:53:52 -07:00
{{ .Content }}
</div>
{{ end }}