docsy icon indicating copy to clipboard operation
docsy copied to clipboard

How to use taxonomies with multiple words?

Open at055612 opened this issue 2 years ago • 1 comments

I have two custom taxonomies that are both made of two words. It is not clear how to configure these multi word taxonomies. If I use lower_snake_case object_types then it works fine, but if I use lowerCamelCase schemaActions (which is more consistent with the rest of the configuration and front matter) it doesn't show the cloud for "Schema Actions" (see screen shots below). Is this my mistake or a bug?

My config is

[taxonomies]
tag = "tags"
object_type = "object_types"
schemaAction = "schemaActions"

[params.taxonomy]
taxonomyCloud = ["tags", "object_types", "schemaActions"] 
taxonomyCloudTitle = ["Tag Cloud", "Object Types", "Schema Actions"] 
taxonomyPageHeader = ["tags", "object_types", "schemaActions"] 

Front matter is

---
schemaActions:
  - xyz
object_types:
  - def
title: "Glossary"
linkTitle: "Glossary"
weight: 80
date: 2022-02-16
tags: 
  - xxx
  - yyy
  - zzz
description: >
  Glossary of common words and terms used in Stroom.
---

image

image

If I change schemaActions? to schema_actions? the cloud is shown:

image

at055612 avatar May 06 '22 09:05 at055612

If I have it correctly in mind, such parameters should be only lower case. Or er least, there were some issues with capital letters in the past (eg https://discourse.gohugo.io/t/config-params-should-be-all-lowercase-or-not/5051)

raum51 avatar May 06 '22 12:05 raum51

Hi, is this issue still open? I want to work on this issue; please assign me to this.

H20220009 avatar Jan 23 '23 14:01 H20220009

Hi @H20220009 we don't assign issues in this project. If you would like to contribute please check out our Contributing Guidelines.

emckean avatar Jan 23 '23 23:01 emckean

Hi, Can you please elaborate on this issue and which directory needs help? Also, is there any documentation required?

H20220009 avatar Jan 27 '23 07:01 H20220009