This commit is contained in:
Mateusz Hromada 2018-09-25 14:35:51 +02:00
parent 9abdee5f7c
commit ef0717e289
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{{ $dateFormat := default "02-01-2006 15:04" (index .Site.Params "date_format") }}
<h2>{{ .Title | markdownify }}{{ if not .Date.IsZero }} <small>{{ .Date.Format $dateFormat }}</small>{{ end }}</h2>
{{ .Content }}

View File

@ -0,0 +1,8 @@
{{ define "main" }}
{{ range .Pages }}
{{ .Render "content" }}
{{ end }}
{{ end }}