blogamore/layouts/blog/single.html

25 lines
644 B
HTML
Raw Normal View History

2022-11-13 20:52:45 +01:00
{{ define "main" }}
<section class="section">
<article>
<div class="columns is-centered">
<div class="column">
<h1 class="title is-1">{{ .Title }}</h1>
<div class="blog-post-meta">{{ partial "metadata.html" . }}</div>
<div class="content">
{{ .Content }}
</div>
<div class="blog-post-meta mt-5">{{ partial "metafooter.html" . }}</div>
</div>
</div>
</article>
</section>
{{ end }}
{{ define "sidebar" }}
<aside class="position-sticky" style="top: 2rem;">
<div class="p-4">
{{ .TableOfContents }}
</div>
</aside>
{{ end }}