diff --git a/wowchemy/layouts/partials/widgets/portfolio.html b/wowchemy/layouts/partials/widgets/portfolio.html index 9eb8cb59..a24992f0 100644 --- a/wowchemy/layouts/partials/widgets/portfolio.html +++ b/wowchemy/layouts/partials/widgets/portfolio.html @@ -47,7 +47,15 @@ {{ end }}
- {{ range $idx, $item := where site.RegularPages "Type" $items_type }} + + {{ $query := "" }} + {{ if $st.Params.content.filters.tags }} + {{ $query = where site.Pages "Params.tags" "intersect" $st.Params.content.filters.tags }} + {{ else }} + {{ $query = where site.RegularPages "Type" $items_type }} + {{ end }} + + {{ range $idx, $item := $query }} {{ $link := $item.RelPermalink }} {{ $target := "" }}