Refactor templates and partials

This commit is contained in:
Alex Shpak
2018-11-25 13:30:25 +01:00
parent 461aafe995
commit 76c251066f
11 changed files with 57 additions and 33 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
{{ define "main" }}
<header>
<h1>{{ .Title }}</h1>
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
<h5>
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
</h5>
</header>
<article class="markdown">
{{- .Content -}}
</article>
{{ end }}
{{ end }}