# How to get a tags page?

**URL:** <https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213>\
**Category:** support\
**Created:** [March 24, 2020, 11:20am UTC](https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213 "2020-03-24T11:20:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvallverdu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gvallverdu/32/5235_2.png) [@gvallverdu](https://discourse.gohugo.io/u/gvallverdu)\
**Post date:** [March 24, 2020, 11:20am UTC](https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213/1 "2020-03-24T11:20:04Z")

</div>

Hello

The questions might be basic but I am really lost … The core part of the question is, in my `layout` folder, where do I have to put and how I have to name the html page to produce a page with a tag list ?

I wrote a set of articles, with tags in the article headers, something like:

```auto
---
title:
author:
tags:
    - tag1
    - tag2
---

```

I made a tags folder in my contents:

```auto
mySite/
    content/
        post/
            toto.md
            titi.md
        tags/
        ...

```

Thus if I well understand, tags is now a section of my hugo website.

In my `config.tom` I put:

```auto
[[menu.main]]
    name = "Tags"
    identifier = "tags"
    weight = 300
    url = "/tags/"

```

By doing this, I obtain a page with the list my tags and looking at the page I know that this page follow the post-list.html partials. I guess, this is because the folder is empty and because tags is a hugo specific name ? What I want to do is to change the layout of this page.

I look at the doc here [https://gohugo.io/templates/taxonomy-templates/#example-list-tags-in-a-single-page-template](https://gohugo.io/templates/taxonomy-templates/#example-list-tags-in-a-single-page-template) and here [https://gohugo.io/templates/single-page-templates/](https://gohugo.io/templates/single-page-templates/) but I did not succeed.  
Actually, I don’t understand what is the name of that html file and in which folder I have to put it.

Thanks and sorry for maybe a basic question

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [March 24, 2020, 6:36pm UTC](https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213/2 "2020-03-24T18:36:55Z")

</div>

The template at `/tags/` will be a list page, it _lists_ the terms.

> **[Taxonomies](https://gohugo.io/content-management/taxonomies#default-destinations)**
>
> Hugo includes support for user-defined taxonomies to help you demonstrate logical relationships between content for the end users of your website.

I always forget the template naming, but you want either `layouts/_default/terms.html ` or `layouts/_default/taxonomy.html ` (try them in that order, see if the template changes).

---

<div class="post-metadata">

**Author:** ![gvallverdu](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gvallverdu/32/5235_2.png) [@gvallverdu](https://discourse.gohugo.io/u/gvallverdu)\
**Post date:** [March 25, 2020, 10:46pm UTC](https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213/3 "2020-03-25T22:46:31Z")

</div>

Thank you. I have created a `layouts/_default/terms.html` template along with a `content/tags/` folder with a `_index.md` file and it works.

Here is the result: [https://gsalvatovallverdu.gitlab.io/tags/](https://gsalvatovallverdu.gitlab.io/tags/)

This is my `terms.html` layout: [https://gitlab.com/gsalvatovallverdu/gsalvatovallverdu.gitlab.io/-/blob/master/layouts/\_default/terms.html](https://gitlab.com/gsalvatovallverdu/gsalvatovallverdu.gitlab.io/-/blob/master/layouts/_default/terms.html)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [March 27, 2020, 10:46pm UTC](https://discourse.gohugo.io/t/how-to-get-a-tags-page/24213/4 "2020-03-27T22:46:37Z")

</div>

Closed on March 27, 2020, 10:46pm UTC

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