How to list blog post filtered by categories at

Hi, I am using the below code to list all the categories of post having type blog

{{range $name, $taxonomy := where .Site.Taxonomies.categories "Type" "blog" }}
<li><a href="{{ "/blog/categories/" | relLangURL }}{{ $name | urlize }}">{{ humanize $name }}</a></li>
{{ end }}

I am able to get the list of blogs filtered by categories at /categories/category-name.
How can I get this list at ?

try this in your config(.toml)

categories = “/blog/categories /:slug”

1 Like

Thanks. It worked. But /categories is still available. Is there a way to disable /categories ?

can be old??? Delete it and try again

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.