ignoreLogs = ['cascade-pattern-with-extension'] is ignored

ERROR cascade target path “/intro.md” looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see Path | Hugo

Yet this is the start of hugo.toml:

languageCode = ‘en-us’
disableKinds = [‘taxonomy’,‘rss’]
ignoreErrors = [‘error-remote-getjson’]
ignoreLogs = [‘cascade-pattern-with-extension’]
timeout = 1000000
enableRobotsTXT = true
copyright = ‘Everything is mine’
disableHugoGeneratorInject = true
publishDir = ‘htdocs’

version: hugo v0.123-extended

I don’t understand how the warning and configuration are related.

1 Like

Sorry, it mixed them up.
What it shows is:

ERROR cascade target path "/intro.md" looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see  https://gohugo.io/methods/page/path/
You can suppress this error by adding the following to your site configuration:
ignoreLogs = ['cascade-pattern-with-extension']
ERROR cascade target path "/docs/**/_index.md" looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see  https://gohugo.io/methods/page/path/
You can suppress this error by adding the following to your site configuration:
ignoreLogs = ['cascade-pattern-with-extension']

despite the aforementioned ignoreLogs = ['cascade-pattern-with-extension'] actually present in the config.

so, why does hugo still show

ERROR cascade target path "/intro.md" looks like a path with an extension; since Hugo v0.123.0 this will not match anything, see  https://gohugo.io/methods/page/path/
You can suppress this error by adding the following to your site configuration:
ignoreLogs = ['cascade-pattern-with-extension']

Despite said parameter already being in my config ?
Because of that, I also get that warning WARN found no layout file for "html" for kind "section".

With this:

ignoreLogs = ['cascade-pattern-with-extension']

the build completes without error (status code 0), but the error message is not suppressed. See:
https://github.com/gohugoio/hugo/issues/12151

If you want to cascade a value to a particular page without using a Glob pattern, specify the page’s logical path:

[cascade._target]
path = '/intro'

I’m not sure how this would be related to:

WARN found no layout file for “html” for kind

I think the problem is that you have both ignoreErrors and ignoreLogs configured; we effectively renamed ignoreErrors to ignoreLogs, but kept the old one as an alias (which I suspect is now causing issues).

ah, it was that.
I still have found no layout file for html" for kind "section" though.

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