# Blocks and define override in hugo theme

**URL:** <https://discourse.gohugo.io/t/blocks-and-define-override-in-hugo-theme/3543>\
**Category:** support\
**Created:** [June 21, 2016, 12:22pm UTC](https://discourse.gohugo.io/t/blocks-and-define-override-in-hugo-theme/3543 "2016-06-21T12:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IxDay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ixday/32/1758_2.png) [@IxDay](https://discourse.gohugo.io/u/IxDay)\
**Post date:** [June 21, 2016, 12:22pm UTC](https://discourse.gohugo.io/t/blocks-and-define-override-in-hugo-theme/3543/1 "2016-06-21T12:22:39Z")

</div>

I face an issue when using Hugo v0.16 and creating a theme.

Basically I define a `list.html` file with a `{{ block }}` entry in order to override it later in my taxonomy

After reading the documentation [here](https://gohugo.io/templates/list/#taxonomy-lists) it seems that a good entrypoint should be in the `/themes/THEME/layouts/_default/taxonomy.html`  
file. But when I render my `index.html` it uses the define in the taxonomy file. I think this is a bug but I just want to be sure.

here are the basic content of my files:

\_default/list.html

```
<h1>Foo {{ block "bar"}}{{ end }}</h1>

```

\_default/taxonomy.html

```
 {{ define "bar" }}Bar{{ end }}

```

What I was expecting:

index.html

```
<h1>Foo </h1>

```

/taxonomy\_plural/taxonomy\_term/

```
<h1>Foo Bar</h1>

```

But the index.html looks like /taxonomy\_plural/taxonomy\_term/ which is not what I want

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [June 21, 2016, 12:23pm UTC](https://discourse.gohugo.io/t/blocks-and-define-override-in-hugo-theme/3543/2 "2016-06-21T12:23:29Z")

</div>

block keywords should be in baseof\*.html files only.

---

<div class="post-metadata">

**Author:** ![IxDay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ixday/32/1758_2.png) [@IxDay](https://discourse.gohugo.io/u/IxDay)\
**Post date:** [June 21, 2016, 2:52pm UTC](https://discourse.gohugo.io/t/blocks-and-define-override-in-hugo-theme/3543/3 "2016-06-21T14:52:56Z")

</div>

It works! Thanks a lot!
