From ef0717e289a2c7d5bb349358b01c74146a399bc6 Mon Sep 17 00:00:00 2001 From: Mateusz Hromada Date: Tue, 25 Sep 2018 14:35:51 +0200 Subject: [PATCH] List. --- layouts/_default/content.html | 4 ++++ layouts/_default/list.html | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 layouts/_default/content.html diff --git a/layouts/_default/content.html b/layouts/_default/content.html new file mode 100644 index 0000000..5d17305 --- /dev/null +++ b/layouts/_default/content.html @@ -0,0 +1,4 @@ +{{ $dateFormat := default "02-01-2006 15:04" (index .Site.Params "date_format") }} + +

{{ .Title | markdownify }}{{ if not .Date.IsZero }} {{ .Date.Format $dateFormat }}{{ end }}

+{{ .Content }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..7410409 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,8 @@ +{{ define "main" }} + +{{ range .Pages }} + {{ .Render "content" }} +{{ end }} + + +{{ end }}