diff options
-rw-r--r-- | layouts/index.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index 172e87a..5d3350c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,8 +2,9 @@ <div id="content" class="mw7 center"> <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. --> - - {{ range where .Data.Pages "Section" "post" }} + {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} + {{ partial "pagination.html" . }} + {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} </div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 992a65d..b4df1c4 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,4 @@ -<footer id="footer" class="mw7 center mb3"> +<footer id="footer" class="mw7 center mv3"> <span class="db tc black-60"> © {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. All Rights Reserved </span> |