Skip to content

Add a build option to duplicate non-page (e.g. images) resources across languages #11904

@bep

Description

@bep

See #11453.

That is mostly a good thing.

But it doesn't work if:

  • The multilingual site doesn't have image render hooks.
  • The multilingual site have Markup formats (e.g. HTML, Asciidoc) that does not support render hooks.

So, I suggest that we extend the front matter build options to look something like this:

[_build]
  list = 'always'
  publishResources = true
  duplicateResourceFiles = true
  render = 'always'

When duplicateResourceFiles = true we copy non-page resources (e.g. foo.png) for the languages without a dedicated version.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions