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

33 lines
884 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 }}
2020-09-27 16:22:29 -07:00
{{ if .Draft }}
<div class="draft-warning">
<em>Warning!</em> This post is a draft. At best, it may contain grammar mistakes;
at worst, it can include significant errors and bugs. Please
use your best judgement!
</div>
{{ end }}
2019-08-02 22:53:52 -07:00
{{ .Content }}
</div>
{{ end }}