# Tags and search do not work

**URL:** https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878
**Category:** support
**Tags:** taxonomy, search
**Created:** [March 9, 2025, 6:38am UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878 "2025-03-09T06:38:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Loaxert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/loaxert/32/24079_2.png) [@Loaxert](https://discourse.gohugo.io/u/Loaxert)
#### Post date: [March 9, 2025, 6:38am UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878/1 "2025-03-09T06:38:25Z")

</div>

Hi i have two problems, I have some articles with some tags not long ago It was working both the search and the list of tags but from one moment to another (do not touch anything related to this) stopped working and already tried everything but there is no solution the link to my repo is [GitHub - Loaxert/loaxert.github.io: Mi web personal](https://github.com/Loaxert/loaxert.github.io) if anyone can help me thanks

---

<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 9, 2025, 7:01am UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878/2 "2025-03-09T07:01:55Z")

</div>

See [this FAQ](https://gohugo.io/troubleshooting/faq/#why-do-i-see-page-not-found-when-visiting-the-home-page) and the three after it.

```plaintext
mv content/index.md content/_index.md

```

Also:

- Remove the following front matter from all files: `layout`, `type`
- Add some front matter to `content/tags/_index.md` (the file shouldn’t be empty)
- Use either `hugo.toml` or `config/_default/hugo.toml` (not both)
- Fix your content structure

Current:

```plaintext
content/
├── Challenges/
│ ├── OnlyHacks/
│ │ └── OnlyHacks.md
│ └── _index.md
├── HTB/
│ └── index.md
├── Maquinas/
│ ├── Dog/
│ │ └── dog.md
│ ├── Topology/
│ │ └── topology.md
│ └── _index.md
├── tags/
│ └── _index.md 
└── index.md

```

Expected:

```plaintext
content/
├── challenges/
│ ├── _index.md
│ └── onlyhacks.md
├── htb/
│ └── _index.md
├── maquinas/
│ ├── _index.md
│ ├── dog.md
│ └── topology.md
├── tags/
│ └── _index.md
└── _index.md

```

A directory with an `_index.md` is a branch bundle (a.k.a. “section”) and can have descendants.  
A directory with an `index.md` file is a leaf bundle and has no descendants.

---

<div class="post-metadata">

### Author: ![Loaxert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/loaxert/32/24079_2.png) [@Loaxert](https://discourse.gohugo.io/u/Loaxert)
#### Post date: [March 9, 2025, 2:40pm UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878/3 "2025-03-09T14:40:13Z")

</div>

thanks man that works

---

<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 11, 2025, 2:40pm UTC](https://discourse.gohugo.io/t/tags-and-search-do-not-work/53878/4 "2025-03-11T14:40:39Z")

</div>

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