# Add category pages

**URL:** <https://discourse.gohugo.io/t/add-category-pages/31577>\
**Category:** support\
**Tags:** taxonomy\
**Created:** [March 5, 2021, 11:37am UTC](https://discourse.gohugo.io/t/add-category-pages/31577 "2021-03-05T11:37:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![protofra](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/protofra/32/13783_2.png) [@protofra](https://discourse.gohugo.io/u/protofra)\
**Post date:** [March 5, 2021, 11:37am UTC](https://discourse.gohugo.io/t/add-category-pages/31577/1 "2021-03-05T11:37:31Z")

</div>

Hello, I’ve a question for you.

I’ve managed to deploy my website and everything work fine. Though I would like to add pages with all the articles related to a specific category.

As far as I can tell, the theme I use does support categories: I can add them in the articles and there’s a folder in /public named /categories where there are the categories I made, i.e. “Music”. Inside it there’s a .xml file named “index.xml” that contains all the articles.

The thing, anyway, is that there’s no page in the website where this list is: there’s no “music” page with all the articles of that particular category, basically.

What should I do to implement those category pages?

Here’s the GitHub page, so that you can take a look: [GitHub - protofrancesco/protofra.me](https://github.com/protofrancesco/protofra.me)

Thanks!

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [March 5, 2021, 12:12pm UTC](https://discourse.gohugo.io/t/add-category-pages/31577/2 "2021-03-05T12:12:56Z")

</div>

HI,

in CONFIG, you should activate taxonomies and set permalinks for it

```
[taxonomies]
    category = "categories "

[permalinks]
    categories = "/:section/:slug"

```

you have to create taxonomy list pages, if you don’t like the default

> **[Taxonomy Templates](https://gohugo.io/templates/taxonomy-templates/#readout)**
>
> Taxonomy templating includes taxonomy list pages, taxonomy terms pages, and using taxonomies in your single page templates.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [March 5, 2021, 3:41pm UTC](https://discourse.gohugo.io/t/add-category-pages/31577/3 "2021-03-05T15:41:39Z")

</div>

> [@protofra](#):
>
> What should I do to implement those category pages?

Read the warnings generated when building the site. In addition to telling you what is wrong, they also tell you what needs to be done.

```auto
WARN 2021/03/05 07:30:27 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/03/05 07:30:27 found no layout file for "HTML" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

```

The theme you have chosen doesn’t contain any `_default` templates, it does not leverage a [base template](https://gohugo.io/templates/base/), and it hasn’t been updated in almost two years.

Regardless of whether you choose to fix what you have or use a different theme, there is no need to include a `[taxonomies]` or `[permalinks]` section in your config.toml file; the default configuration already supports both “categories” and “tags”. See [https://gohugo.io/content-management/taxonomies#default-taxonomies](https://gohugo.io/content-management/taxonomies#default-taxonomies).

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [March 5, 2021, 4:32pm UTC](https://discourse.gohugo.io/t/add-category-pages/31577/4 "2021-03-05T16:32:40Z")

</div>

look in

> **[Hugo's Lookup Order](https://gohugo.io/templates/lookup-order/#examples-layout-lookup-for-taxonomy-pages)**
>
> Hugo searches for the layout to use for a given page in a well defined order, starting from the most specific.

you find **Layout Lookup for Taxonomy Pages** and **Layout Lookup for Term Pages**

I use: layouts/category/taxonomy.html and layouts/categories/term.html to get the difference!
