Routing to a page which filters by tag

Sorry if this is vague, I’m struggling to describe it clearly.

I have a page /testimonials in the root of my site, which is based on the Skeleton Blog template. The structure looks something like this:

└── testimonials
    ├── wedding-1
    │   └──
    ├── wedding-2
    │   └──
    ├── event-1
    │   └──

In the frontmatter of each of the files is this:

  tag: [wedding]

or this:

  tag: [event]

If I visit the URL I see the full list of testimonials, as expected.

I can also filter the list of testimonials by visiting /testimonials/tag:wedding or /testimonials/tag:event.

What I’d like to be able to do is show the filtered list of testimonials on the relevant page elsewhere on the site. So in my modular /weddings and /events pages I’d like the following:

  • /weddings/testimonials displays the contents of /testimonials/tag:wedding
  • /events/testimonials displays the contents of /testimonials/tag:event

I tried adding the following in site.yaml but I just get a 404 when I visit the desired URL:

  ^/weddings/testimonials: '/testimonials/tag:wedding'
  ^/events/testimonials: '/testimonials/tag:event'

Is what I’m trying to achieve possible?

Thanks for your time!