From 288105a4842f305d01f965f003781fc2157fe260 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 5 Jan 2018 22:21:22 -0500 Subject: [PATCH] Tweaked list and summary pages. Updated homepage. --- layouts/_default/list.html | 4 +++- layouts/_default/summary.html | 15 +++++---------- layouts/index.html | 16 +++++++++------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9ca736f..17dd4cc 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,7 +2,9 @@ {{ $paginator := .Paginate .Data.Pages }} {{ range $paginator.Pages }} - {{ .Render "summary" }} +
+ {{ .Render "summary" }} +
{{ end }} {{ partial "pagination" . }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 5f87343..387ad66 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -2,22 +2,17 @@
- Placeholder image +
+
-
-
-

{{ .Title }}

-

{{ .Date.Format "January 02 2006" }}

-
-
+

{{ .Title }}

+

{{ .Date.Format "January 02 2006" }} by {{ .Params.author }}

{{ .Summary }}
- -
+ \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 2780b49..d9d2703 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,11 @@ -{{ define "main" }} -{{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }} +{{ define "main" }} {{ $paginator := .Paginate (where .Data.Pages "Section" "entry") 3 }} -{{ range $paginator.Pages }} -{{ .Render "summary" }} -{{ end }} +
+ {{ range $paginator.Pages }} +
+ {{ .Render "summary" }} +
+ {{ end }} +
-{{ partial "pagination" . }} -{{ end }} \ No newline at end of file +{{ partial "pagination" . }} {{ end }} \ No newline at end of file