Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARN deprecated - hugo version v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 #488

Open
sysadmin-info opened this issue May 19, 2024 · 0 comments

Comments

@sysadmin-info
Copy link

$ hugo server -D ─╯
WARN DEPRECATED: Kind "taxonomyterm" used in outputs configuration is deprecated, use "taxonomy" instead.
WARN deprecated: config: languages.en.languagedir: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in a future release. Put the value below [languages.en.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
WARN deprecated: config: languages.pl.languagedir: custom params on the language top level was deprecated in Hugo v0.112.0 and will be removed in a future release. Put the value below [languages.pl.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
Watching for changes in /home/username/example.com/{archetypes,assets,content,layouts,static,themes}
Watching for config changes in /home/username/example.com/config/_default
Start building sites …
hugo v0.122.0-b9a03bd59d5f71a529acb3e33f995e0ef332b3aa+extended linux/amd64 BuildDate=2024-01-26T15:54:24Z VendorInfo=gohugoio

Solution:

  1. Update the outputs configuration:
    Replace taxonomyterm with taxonomy in the [outputs] section.

In config.toml replace taxonomyterm with taxonomy in the [outputs] section, so it should look like this:

  taxonomy = ["HTML", "RSS", "SearchIndex"]
  1. Update the languages configuration:
    Move the languagedir parameter under the [languages..params] section in both config.toml and languages.toml.

In config.toml add for languages this:

[languages]
  [languages.en]
    languageName = "English"
    contentDir = "content/en"
    weight = 1
    [languages.en.params]
      languagedir = "ltr"
  [languages.pl]
    languageName = "Polish"
    contentDir = "content/pl"
    weight = 2
    [languages.pl.params]
      languagedir = "ltr"

In languages.toml set it as below:

[en]
  title = "English title"
  languageName = "English"
  weight = 1
  contentdir = "content/en"
  [en.params]
    languagedir = "ltr"

[pl]
  title = "Polski tytuł"
  languageName = "Polski"
  weight = 2
  contentdir = "content/pl"
  [pl.params]
    languagedir = "ltr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant