mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
46 lines
1.0 KiB
HTML
46 lines
1.0 KiB
HTML
{{ define "main" }}
|
|
<div class="post-title">
|
|
<h1>{{ .Title | markdownify }}</h1>
|
|
</div>
|
|
|
|
{{ if or .Date (.GetTerms "tags") }}
|
|
<div class="post-metadata">
|
|
{{ if .Date }}
|
|
|
|
<span class="date">
|
|
{{ partial "icon.html" "calendar" }}
|
|
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
|
{{ .Date.Format "January 2, 2006" }}
|
|
</time>
|
|
|
|
{{ if ne .Lastmod .Date }}
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
|
(Modified {{ .Lastmod.Format "January 2, 2006" }})
|
|
</time>
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
</span>
|
|
|
|
<span class="tags">
|
|
{{ range (.GetTerms "tags") }}
|
|
<span class="tag">
|
|
{{ partial "icon.html" "tag" }}
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
</span>
|
|
{{ end }}
|
|
</span>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ if .Params.Toc }}
|
|
<div id="table-of-contents">
|
|
<h3>Table of Contents</h3>
|
|
{{ .TableOfContents }}
|
|
</div>
|
|
<hr>
|
|
{{ end }}
|
|
|
|
{{ .Content }}
|
|
{{ end }}
|