From 16278853249655f1481a2f16c7616d07ff9e6ddd Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 23 Apr 2017 12:57:33 +0100 Subject: [PATCH] Show recent pages on homepage --- layouts/index.html | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 10a356b..67e5d48 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,26 +41,20 @@
-
-
- -

Sed lorem adipiscing

-

Integer volutpat ante et accumsan commophasellus sed aliquam feugiat lorem aliquet ut enim rutrum phasellus iaculis accumsan dolore magna aliquam veroeros.

- -
-
-
-
- -

Accumsan integer

-

Integer volutpat ante et accumsan commophasellus sed aliquam feugiat lorem aliquet ut enim rutrum phasellus iaculis accumsan dolore magna aliquam veroeros.

- -
-
+ {{ range first 6 (where .Data.Pages.ByDate "Kind" "page") }} + {{ if ne .Section "" }} +
+
+ +

{{ .Title }}

+

{{ .Summary }}

+ +
+
+ {{ end }} + {{ end }}
{{ partial "page_end.html" . }}