Cleanup posts rendering

This commit is contained in:
Alex Shpak
2018-11-25 11:59:42 +01:00
parent a9738191b8
commit aa2b1870d0
5 changed files with 11 additions and 17 deletions
+7 -9
View File
@@ -1,11 +1,9 @@
{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
</header>
<article class="markdown">
{{- .Content -}}
</article>
</section>
<header>
<h1>{{ .Title }}</h1>
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
</header>
<article class="markdown">
{{- .Content -}}
</article>
{{ end }}