Updates to support 0.57.2

This commit is contained in:
Josh Johnson 2019-08-17 18:54:03 -04:00
parent 1f72de06f2
commit 2fa06ec88b
No known key found for this signature in database
GPG key ID: 93E0C66B0988E48B
6 changed files with 15 additions and 9 deletions

View file

@ -1,4 +1,10 @@
{{ $paginator := .Paginate (where .Data.Pages "Type" "!=" "page") }}
{{ $pages := .Pages }}
{{ if .IsHome }}
{{ $pages = .Site.RegularPages }}
{{ end }}
{{ $paginator := .Paginate $pages }}
{{ range .Paginator.Pages }}
{{ $url := replace .Permalink .Site.BaseURL "" }}