From 3e49105331274943f3ace63010f637c433534ac0 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Thu, 13 Apr 2017 23:23:15 -0400 Subject: [PATCH] wip home page layout --- layouts/index.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 26c605f..53a7bf5 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,9 +8,23 @@
{{ $section := where .Data.Pages "Section" "article" }} -
+
{{ range sort (first 1 $section) "Date" "desc" }} -

{{ .Title }}

+ {{ if .Date }} + + {{ .Date.Format "January 2, 2006" }} + + {{ end }} +

+ + {{ .Title }} + +

+ {{ end }}