mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-16 13:05:58 -06:00
BBaoVanC
e62ccfd085
It didn't last very long. Speed isn't really a concern currently since my sites all generate in ~50ms (on my computer, at least).
22 lines
380 B
HTML
22 lines
380 B
HTML
{{ define "main" }}
|
|
<div class="post-title">
|
|
<h1>
|
|
{{ .Title | markdownify }}
|
|
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
|
|
</h1>
|
|
</div>
|
|
|
|
{{ partial "post-metadata.html" . }}
|
|
|
|
{{ if .Params.Toc }}
|
|
<div id="table-of-contents">
|
|
<h2>{{ i18n "table_of_contents" }}</h2>
|
|
{{ .TableOfContents }}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<hr>
|
|
|
|
{{ .Content }}
|
|
{{ end }}
|