Listing posts by categories in subpages

Hello there community I need a little help, there is something I’ve been trying to do for a while

My boss wants our website to have a categories subpage in the blog, something like this:

website.com/blog/categoriaX
website.com/blog/categoriaY

This means that a publication in website.com/blog could appear in a category subpage

I’ve tried to create a file in:

layouts/blog/categorieX/list.html

and I’m using:

{{ range (where .Site.Pages "Type" "=" "blog") }}
  {{ partial "posts.html" . }}
{{ end }}

I’ve also tried

{{ range (where .Data.Pages "Section" "=" "blog") }}
  {{ partial "posts.html" . }}
{{ end }}

that’s just to show all the posts in the subpages I have yet to filter by category taxonomy

a solution I found was to duplicate the post from /content/blog to /content/blog/categorieX but is not the most practical solution

Is this possible in Hugo v0.26? Can you give me some advice?

Thanks in advance

You could use nested sections. That’s a relatively new feature and not very well documented yet.
I created an example repo here: https://github.com/guayom/hugo-sub-sections
Maybe you can find it useful

Thanks! I think this a good approach, I will show this solution to my boss.

If anyone else has another alternative solutions it is welcome