Skip to content

custom params on the language top level is deprecated #997

Closed Answered by razonyang
rainerrose asked this question in Q&A
Discussion options

You must be logged in to vote

There are some issues on your configuration:

  1. You shouldn't specify the leading string/prefix languages, since you're defining the it in languages.* other than config.*/hugo.* file.
  2. The dateFormat should be put below the [*.params], * represents the language code.

config/_default/languages.toml should be

[de]
languageName = "Deutsch"
weight = 1
defaultContentLanguage = "de"
[de.params]
dateFormat = ':date_full'
description = "Anleitungen, HowTos, Code-Schnipsel & Blog"
[de.params.archive]
languageName = "Deutsch"
defaultContentLanguage = "de"
dateFormat = "02.01."
description = "Das Archiv der Homepage"

[en]
languageName = "English"
weight = 2

[fr]
languageName = "Français"
weight = 3
[fr

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rainerrose
Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants