Add simple blog rendering

This commit is contained in:
Alex Shpak
2018-11-24 15:14:43 +01:00
parent 7798a5cc7c
commit 2a89630a47
4 changed files with 51 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
{{ define "main" }}
<section>
<header>
<h1>{{ .Title }}</h1>
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
</header>
<article class="markdown">
{{- .Content -}}
</article>
</section>
{{ end }}