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?
bep
July 15, 2021, 11:28am
2
It’s most likely my stupid mistake, but I’m a little surprised …
opened 11:25AM - 15 Jul 21 UTC
closed 02:15PM - 15 Jul 21 UTC
Bug
Outdated
See https://discourse.gohugo.io/t/removing-default-taxonomies-in-hugo-0-84-0/338… 36
Don’t judge yourself too harshly, you are doing a great job and I am grateful.
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.
bep
July 15, 2021, 12:20pm
4
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 ).