diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9bd0e96..2f83d14 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -28,13 +28,7 @@ {{- $pages := .Pages }} {{- if .IsHome }} - {{/* first language is the main language, get all pages */}} - {{- if (eq site.Language (index site.Languages 0)) }} - {{- $pages = where site.AllPages "Kind" "page" }} - {{- else }} - {{- $pages = site.RegularPages }} - {{- end }} - {{- $pages = where $pages "Type" "in" site.Params.mainSections }} + {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{- end }} {{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}}