Hello I’d like all of the links for categories to be the link but without the category keyword e.g. /<category-name>
Is there a way to do this? The docs make it seem like there is not as they recommend only using :title
:slug
. This is also an extremely hacky way of doing it: https://novelist.xyz/tech/advanced-custom-urls-for-category-pages-in-hugo/ and I don’t fully understand the implementation as I have no layouts/taxonomy
in my repo.
Finally, this is the last hack I found ; though I do not understand gocode so it’s difficult for me to introduce this into a codebase without introducing bugs I cannot fix. https://github.com/LightSunrider/hugo/commit/b3d8d672dbd47a38ddeff21e1fe2b8a3deb41c73