From ee1834cf53a66b0e4b18e871d5bd65c196560912 Mon Sep 17 00:00:00 2001 From: Joseph Hutchinson Date: Sun, 15 Apr 2018 14:53:31 -0400 Subject: [PATCH] Add pagination boilerplate --- layouts/_default/list.html | 5 +++++ static/css/style.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 55a1c0f..100e6cb 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,6 +16,11 @@ {{ end }} +
+ « Older Posts +
Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
+ Newer Posts » +
{{ partial "footer.html" . }} {{ partial "scripts.html" . }} diff --git a/static/css/style.css b/static/css/style.css index 5ba2b60..de4a284 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -137,6 +137,11 @@ img { line-height: 1.5; margin: 0.7em 0; } +.pagination-nav { + margin: 2em; + display: flex; + flex-direction: row; +} blockquote { border-left: 0.3em solid #D1D1D1; margin: 1.5em 0.8em;