Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep (but do not render) terms with render = 'link', list = 'never' #12131

Open
djibe opened this issue Feb 23, 2024 · 1 comment
Open

Keep (but do not render) terms with render = 'link', list = 'never' #12131

djibe opened this issue Feb 23, 2024 · 1 comment
Assignees
Milestone

Comments

@djibe
Copy link
Contributor

djibe commented Feb 23, 2024

What version of Hugo are you using (hugo version)?

$ hugo version 0.123.0
and 0.123.3

Does this issue reproduce with the latest release?

Yes.

Didn't appear with Hugo 0.120 to 0.122

A taxonomy configured with the cascade is no more built.

It is meant to build a menu for fast access to categories without generating hundreds of pages.

[[cascade]]
  [cascade._build]
    list = 'never'
    render = 'never'
  [cascade._target]
    kind = '{taxonomy,term}'
    path = '{/specialites,/specialites/**}'

0.122

Screen Shot 02-23-24 at 05 24 PM

0.123.x

Screen Shot 02-23-24 at 05 17 PM

Thanks

@jmooring
Copy link
Member

jmooring commented Feb 24, 2024

Thoughts on this one...

Content pages: current behavior, working as desired

✔️ Do not render page, and do not add the terms+page to the taxonomy object:

title = 'Post 1'
tags = ['tag-a','tag-b']
[build]
render = 'never'
list = 'never'

✔️ Do not render page, but add the terms+page to the taxonomy object:

title = 'Post 1'
tags = ['tag-a',''tag-b']
[build]
render = 'link'     <-- link instead of never
list = 'never'

Term pages: would it make sense to mirror the above?

✔️ Do not render page, and do not add the term+pages to the taxonomy object (current behavior)

title = 'tag-a'
[build]
render = 'never'
list = 'never'

❌ Do not render page, but add the term+pages to the taxonomy object (proposed behavior):

title = 'tag-a'
[build]
render = 'link'     <-- link instead of never
list = 'never'

Notes from #12044

The green check mark indicates that the term and its weighted pages should contribute to the taxonomy.

RENDER
always link never
LIST always ✔️ ✔️
local ✔️ ✔️
never ✔️ ✔️

@bep bep changed the title 0.123.x doesn't build a taxonomy configurated by the [cascade] Keep (but do not render) terms with render = 'link', list = 'never' Feb 24, 2024
@bep bep self-assigned this Feb 24, 2024
@bep bep modified the milestones: v0.123.4, v0.123.5, v0.123.6, v0.123.7, v0.123.8 Feb 26, 2024
@bep bep modified the milestones: v0.123.8, v0.124.0 Mar 13, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 18, 2024
@bep bep modified the milestones: v0.125.0, v0.137.0 Oct 23, 2024
@bep bep modified the milestones: v0.137.0, v0.138.0, v0.139.0 Oct 23, 2024
@bep bep modified the milestones: v0.139.0, v0.140.0 Nov 21, 2024
@bep bep modified the milestones: v0.140.0, Unscheduled Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants