A Tag page not found

config file

taxonomies:
  tags: subject
permalinks:
  tags: /subject/:slug/

What names and where to put template files, so Hugo will generate list pages for a tag term. I look on documentation etc. and I must do something wrong. Now I have 404 error when open tag name page.

site configuration

taxonomies:
  tag: tags
permalinks:
  tags: /subject/:slug

markdown:

---
title: Post 1
date: 2021-01-01T00:00:00-00:00
draft: false
tags: [Tag A,Tag B]
---

The list of content with Tag A is available at http://localhost:1313/subject/tag-a/

Permalinks in site configuration do not apply to list pages, so you probably want to do this as well:

hugo new tags/_index.md

with content

---
title: Tags
date: 2022-12-15T06:38:21-08:00
draft: false
url: subject
---

Finally, if you want to create unique templates for taxonomy and term pages:

layouts/_default/
├── baseof.html
├── home.html
├── list.html
├── single.html
├── taxonomy.html
└── term.html