Removing default taxonomies in hugo > 0.84.0

I have an issue regarding a hugo update from 0.82.1 to 0.85.0.

Here is my config folder:

config
├── _default
│  ├── config.toml
│  ├── menu.toml
│  └── params.toml
├── production
│  └── config.toml
└── staging
   └── config.toml

You can find the full content of configuration files in the repository: config · feat/catalogue · lesfabricants / Site Les Fabricants · GitLab

The one I am interested in is config/_default/config.toml:

[taxonomies]
appellation = "appellations"
vigneron = "vignerons"

But in 0.85.0 it does not remove tags and categories… Maybe it comes from the merge strategy (Configure Hugo | Hugo)?

Can you help me to figure it out?

It’s most likely my stupid mistake, but I’m a little surprised …

Don’t judge yourself too harshly, you are doing a great job and I am grateful. :wink:

I tried to be explicit in the configuration file without any success:

[taxonomies]
  _merge = "none"

Can you tell me why? If I can be of any help on this subject, do not hesitate, I will be delighted.

I assumed we had test coverage. A quick look at it, and it seems that this works if you put the taxonomies config in the “main” config file (as in: not in the /config directory). I will still fix it, but …

This is a workaround until the fix provided in 0.86.0 (see Check that it's possible to remove/replace default taxonomies (tags, categories) · Issue #8763 · gohugoio/hugo · GitHub)

Still have the exploded configuration files in config/:

config
├── _default
│  ├── menu.toml
│  └── params.toml
├── production
│  └── config.toml
└── staging
   └── config.toml

But the default one is now in the root folder config.toml (instead of config/_default/config.toml).

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