mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-14 12:25:58 -06:00
35 lines
882 B
HTML
35 lines
882 B
HTML
{{ define "main" }}
|
|
<h1>{{ .Title | markdownify }}</h1>
|
|
<!-- I'd like to get rid of the unnaturally large gap between the
|
|
header and the metadata (date, tags, etc) -->
|
|
{{ 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 }}
|
|
<br />
|
|
{{ end }}
|
|
|
|
<span class="tags">
|
|
{{ range (.GetTerms "tags") }}
|
|
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
|
{{ end }}
|
|
</span>
|
|
|
|
{{ if .Params.Toc }}
|
|
<div id="table-of-contents">
|
|
<h3>Table of Contents</h3>
|
|
{{ .TableOfContents }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
{{ end }}
|