Continuing the discussion from Understanding Hugo taxonomy permalinks settings:
Hi there,
in my Hugo site I have
content/
└── en/
└── properties/
├── _index.md
├── property1.md
├── property2.md
└── ...
Page front matter is like this
<!-- content/en/properties/property1.md -->
+++
title = "Property 1"
date = 2023-08-01T00:00:00Z
properties = ["sale"]
+++
This is the content of Property 1 for sale.
Hugo generate multiple duplicates and when I click the generated url I see Page Not Found
error.
My question is how can I setup so I have normal urls such as /properties/property1/ which I can filter based on the category “properties” without actually generating additional duplicate urls etc.
Thanks
Seems like Hugo generate url/ for each category which is not under the parent category such as
<url>
<loc>http://localhost:1313/properties/</loc>
<lastmod>2023-07-13T17:28:16+00:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/properties/</loc>
<lastmod>2023-07-13T17:28:16+00:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/rent/</loc>
<lastmod>2023-07-13T17:28:16+00:00</lastmod>
</url>
<url>
<loc>http://localhost:1313/sale/</loc>
<lastmod>2023-07-13T17:28:16+00:00</lastmod>
</url>