Skip to content
New issue

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

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

Already on GitHub? # to your account

Cascade _target.kind not accepting glob pattern #8888

Closed
regisphilibert opened this issue Aug 13, 2021 · 3 comments · Fixed by #9445
Closed

Cascade _target.kind not accepting glob pattern #8888

regisphilibert opened this issue Aug 13, 2021 · 3 comments · Fixed by #9445

Comments

@regisphilibert
Copy link
Member

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

hugo v0.86.1-F6821B88+extended darwin/amd64 BuildDate=2021-07-30T10:13:35Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes

Using the following cascade configuration:

# content/_index.md
cascade:
- _target:
    path: /poetry/**
    lang: en
    kind: '{section,page}'

Hugo returns the following error:

Error: Error building site: ".../content/en/_index.md:1:1": "{section,page}" is not a valid Page Kind

As per doc:

A Glob pattern matching the Page’s Kind(s), e.g. “{home,section}”.

czy-29 added a commit to czy-29/hugoDocs-cn that referenced this issue Aug 15, 2021
@bep bep reopened this Aug 20, 2021
@bep bep added this to the v0.88 milestone Aug 20, 2021
@bep
Copy link
Member

bep commented Aug 20, 2021

I closed this when I was in a little bit of a grumpy mood -- we should fix this. :-)

@regisphilibert
Copy link
Member Author

Maybe for this particulier case it would be easier for both maintainers and users to add a kinds key which take an array rather than suggest glob for a list of predefined and documented strings...

@bep bep modified the milestones: v0.88, v0.89 Sep 2, 2021
@bep bep modified the milestones: v0.89, v0.90 Nov 2, 2021
@bep bep modified the milestones: v0.90, v0.91.0 Dec 8, 2021
@bep bep modified the milestones: v0.91.0, v0.92.0 Dec 20, 2021
@bep bep modified the milestones: v0.92.0, v0.93.0 Jan 12, 2022
jmooring added a commit to jmooring/hugo that referenced this issue Jan 30, 2022
jmooring added a commit to jmooring/hugo that referenced this issue Jan 30, 2022
jmooring added a commit to jmooring/hugo that referenced this issue Jan 30, 2022
@bep bep closed this as completed in #9445 Feb 10, 2022
bep pushed a commit that referenced this issue Feb 10, 2022
@bep bep modified the milestones: v0.93.0, v0.92.2 Feb 10, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants