From ea7d49749d5a87ebba47659e56528987830f7d48 Mon Sep 17 00:00:00 2001 From: coderzh Date: Sat, 31 Aug 2019 23:42:09 +0800 Subject: use mainSections and RegularPages breaking change from 0.57.0, see gohugoio/hugoThemes#682 --- layouts/index.html | 2 +- layouts/partials/widgets/archive.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 5352bb4..fd7697a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@
- {{ range $index,$data := first 10 (where .Data.Pages "Type" "post") }} + {{ range $index,$data := first 10 (where site.RegularPages "Type" "post") }} {{ partial "article.html" $data }} {{ end }}