From c27134a5c7f13a7580153d447c62cabf1f77423e Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 23 Mar 2019 20:09:27 +0000 Subject: [PATCH] fix(widget): tag and category filters not working in Pages and Featured Fix #989 --- layouts/partials/widgets/featured.html | 4 ++-- layouts/partials/widgets/pages.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/widgets/featured.html b/layouts/partials/widgets/featured.html index b0ae830b..aefe1428 100644 --- a/layouts/partials/widgets/featured.html +++ b/layouts/partials/widgets/featured.html @@ -12,11 +12,11 @@ {{/* Filters */}} {{ if $st.Params.content.filters.tag }} - {{ $archive_page := $.Site.GetPage (printf "tags/%s" $st.Params.filters.content.tag) }} + {{ $archive_page := $.Site.GetPage (printf "tags/%s" $st.Params.content.filters.tag) }} {{ $query = $query | intersect $archive_page.Pages }} {{ end }} {{ if $st.Params.content.filters.category }} - {{ $archive_page := $.Site.GetPage (printf "categories/%s" $st.Params.filters.content.category) }} + {{ $archive_page := $.Site.GetPage (printf "categories/%s" $st.Params.content.filters.category) }} {{ $query = $query | intersect $archive_page.Pages }} {{ end }} {{ if $st.Params.content.filters.publication_type }} diff --git a/layouts/partials/widgets/pages.html b/layouts/partials/widgets/pages.html index 71b6a2e1..ae38499d 100644 --- a/layouts/partials/widgets/pages.html +++ b/layouts/partials/widgets/pages.html @@ -19,11 +19,11 @@ {{/* Filters */}} {{ if $st.Params.content.filters.tag }} - {{ $archive_page = $.Site.GetPage (printf "tags/%s" $st.Params.filters.content.tag) }} + {{ $archive_page = $.Site.GetPage (printf "tags/%s" $st.Params.content.filters.tag) }} {{ $query = $query | intersect $archive_page.Pages }} {{ end }} {{ if $st.Params.content.filters.category }} - {{ $archive_page = $.Site.GetPage (printf "categories/%s" $st.Params.filters.content.category) }} + {{ $archive_page = $.Site.GetPage (printf "categories/%s" $st.Params.content.filters.category) }} {{ $query = $query | intersect $archive_page.Pages }} {{ end }} {{ if $st.Params.content.filters.publication_type }}