frjo / hugo-theme-zen

A fast and clean Hugo base theme with css-grid and Hugo pipes support.
https://zen-demo.xdeb.org/
GNU General Public License v2.0
264 stars 75 forks source link

Different Zen theme settings for each language #73

Closed arky closed 1 year ago

arky commented 1 year ago

Is it possible to provide params for each language in a multilingual site. Am following the new config structure provide by HUGO Docs project

Am declaring Zen theme params in config/_default/params.toml

[en]
contact = "ACME"
copyright = "© ACME 2023"
description = "ACME Project"

[de]
contact = "ACME"
copyright = " © ACME 2023"
description = "ACME Projekt"
frjo commented 1 year ago

I believe you need to set it inside config/_default/languages.toml

See https://gohugo.io/content-management/multilingual/#configure-languages

Nothing special should be needed for the Zen theme, it should works the Hugo way. If it does not , it's a bug in Zen.

arky commented 1 year ago

@frjo Fantastic! Just setting the params inside config/_default/languages.toml works like a charm.

Thank you once again.