Skip to content

Partials does not work with multiple languages and RSS #13612

@antomal

Description

@antomal

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

v0.146.3

Does this issue reproduce with the latest release?

Yes

Problem

My site is in Russian and English. The default language is Russian (defaultContentLanguage = "ru").

Files:
/partials/comment.ru.html
/partials/comment.en.html
/partials/comment.ru.xml
/partials/comment.en.xml

Fragment from the template /layouts/_default/single.html:

{{ partial (print "comment." (default "ru" .Lang) ".html") . }}

In version 0.145.0 everything was fine, but after the update it always displays only partial en (comment.en.html). Even in RSS I see comment.en.html (instead of comment.ru.xml or comment.en.xml).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions