diff options
author | MATSUKI Hidenori <mazgi@users.noreply.github.com> | 2019-08-16 18:07:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 18:07:10 +0300 |
commit | c657b9cb6f87789351704c7a86a44b084be2fc5c (patch) | |
tree | fa43e8d292bec969f1c4889c2c8a53ca42f6d245 | |
parent | 57bcf639416e623ae35c1f7bce166908134dd824 (diff) | |
parent | fdf9ccb1647163f9bdf0b6c8a4303c3e0c35e463 (diff) |
Merge pull request #5 from mazgi/fix/use-site-regularpages-for-hugo-0.57
Use .Site.RegularPages on Hugo 0.57+
-rw-r--r-- | exampleSite/Dockerfile | 2 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/Dockerfile b/exampleSite/Dockerfile index e3a2b9d..91d2e3d 100644 --- a/exampleSite/Dockerfile +++ b/exampleSite/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:18.04@sha256:de774a3145f7ca4f0bd144c7d4ffb2931e06634f11529653b23eba85aef8e378 MAINTAINER "Hidenori MATSUKI <matsuki.hidenori+docker@gmail.com>" -ENV DOCKERBUILD_HUGO_VERSION="0.49" +ENV DOCKERBUILD_HUGO_VERSION="0.57.0" ENV DEBIAN_FRONTEND="noninteractive" RUN : 'Install packages' \ diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2735611..4061bed 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -13,7 +13,7 @@ {{ end }} {{ end }} - {{ $paginator := .Paginate ( where .Data.Pages "Section" "ne" "profiles" ) }} + {{ $paginator := .Paginate ( where .Site.RegularPages "Section" "ne" "profiles" ) }} {{ range $idx, $page := $paginator.Pages }} {{ if $page.Section }} <article> |