Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Page.Resources should not auto fill in values from other roles or versions #14749

@bep

Description

@bep

See https://discourse.gohugo.io/t/photo-blog-with-extra-images-for-members/56988

This is some logic that's left behind from when we had only one dimension (language) where the common case would be to have one resource set (e.g. an image) and many content translation.

We need to fix that so:

  • For sites matrix defined in the content filename (e.g. data.en.js) or in its mount definition, we may use that as a fallback for e.g. German languages if we don't find a better match.
  • For content adapters, this is not relevant: Here you must be explicit about this.
  • Also, we never auto-fallback on resources from a role/version to another.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions