Skip to content

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

Description

@sysadmin-info

$ 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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions