From 8616dd8c106c82b7845b894c2cb0809dd3d02aa1 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 25 Dec 2016 17:56:24 +0200 Subject: [PATCH] layouts/_default/baseof.html: Use .Site.RegularPages instead of .Site.Pages Hugo 0.18 changes the pages returned by .Site.Pages, so we need to use .Site.RegularPages in order to test the type. See: https://github.com/spf13/hugo/releases/tag/v0.18 See: https://gohugo.io/templates/variables#site-variables --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b20b7b0..7f6b521 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -38,7 +38,7 @@ {{ .Name }} {{ end }} {{ else }} - {{ range where .Site.Pages "Type" "!=" "post" }} + {{ range where .Site.RegularPages "Type" "!=" "post" }} {{ .Title }} {{ end }} {{ end }}