# Color coded categories

**URL:** <https://discourse.gohugo.io/t/color-coded-categories/5251>\
**Category:** support\
**Created:** [January 25, 2017, 3:35pm UTC](https://discourse.gohugo.io/t/color-coded-categories/5251 "2017-01-25T15:35:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [January 25, 2017, 10:16pm UTC](https://discourse.gohugo.io/t/color-coded-categories/5251/3 "2017-01-25T22:16:40Z")

</div>

> [@benmarte](#):
>
> Then you can probably use the taxonomy to set the class name of your title and have it style it based on the css that matches the taxonomy name.

This might work, but I think that maybe “categories” here is really asking about site sections? At least that’s what I took from the WP theme you provided above…

In this case, you can range through the sections of the site with `.Site.Sections`. I would recommend searching the forums a bit more, or at least look at the following for some ideas…

> **[How to list sections?](https://discourse.gohugo.io/t/how-to-list-sections/1606/9)**
>
> It just confused me what .Site.Sections returned and what I falsely expected. But you already explained it in the first sentence why the type is taxonomy. Update: What actually confused me was that I didn’t know the return values of range....

> **[Adding weights to Sections to order on the homepage](https://discourse.gohugo.io/t/adding-weights-to-sections-to-order-on-the-homepage/856/4)**
>
> +1. A workaround is to use menus because their weights can be specified in config.toml. But it requires redundant information, parent-child relationships, to be specified in each front matter of articles. For example,...

---

_[View the full topic](https://discourse.gohugo.io/t/color-coded-categories/5251)._
