# Intersect Function

**URL:** <https://discourse.gohugo.io/t/intersect-function/6498>\
**Category:** support\
**Created:** [May 9, 2017, 6:16pm UTC](https://discourse.gohugo.io/t/intersect-function/6498 "2017-05-09T18:16:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjain15](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rjain15/32/11313_2.png) [@rjain15](https://discourse.gohugo.io/u/rjain15)\
**Post date:** [May 9, 2017, 6:16pm UTC](https://discourse.gohugo.io/t/intersect-function/6498/1 "2017-05-09T18:16:15Z")

</div>

Hi ,

I have an Array of Topics which I configure in my config.toml at Site level and I only want to display those topic pages as I am iterating through my .Site.Pages

Is this a good use case to use the intersect function

config.toml

Topics: = [“current”,“sports”,“fashion”]

And in the [index.md](http://index.md), [page1.md](http://page1.md), [page2.md](http://page2.md) , I have various tags  
Tags = [“current”, “sports”]

I want to only show the pages which have either of current, sports and fashion

Thanks, Rajesh

---

<div class="post-metadata">

**Author:** ![moorereason](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/moorereason/32/592_2.png) [@moorereason](https://discourse.gohugo.io/u/moorereason)\
**Post date:** [May 10, 2017, 8:49pm UTC](https://discourse.gohugo.io/t/intersect-function/6498/2 "2017-05-10T20:49:50Z")

</div>

This sounds like a known issue. Should be fixed in the next release.

[https://github.com/spf13/hugo/issues/1952](https://github.com/spf13/hugo/issues/1952)
