mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 16:14:05 +00:00
fix(widget): tag and category filters not working in Pages and Featured
Fix #989
This commit is contained in:
1 parent
ea4621aedb
commit
c27134a5c7
2 files changed
+4
-4
No files matched your search
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user