Multi-language v0.36 no longer building content pages – why?


#1

UPDATE: Here is the resolution to this post: Multi Language site not building content


Hugo v0.36 isn’t creating pages from my content folder on a multi-language site after the update from 0.31 -> 0.36

Has something changed? I can’t for the life of me get any of my posts / pages to exist anymore. Everything is bringing back a page that says “Cannot find 404”

Content folder contains files:

When I run hugo or hugo server or hugo --buildEverything, no content created:

Here’s my config with the URL omitted

baseURL                         = "https://something.pl"
relativeurls                   = true
defaultContentLanguage         = "pl"
defaultContentLanguageInSubdir = true


[languages]

[languages.en]
  languageName = "english"
  weight = 3
  title = "something"

[[languages.en.menu.main]]
  url = "/en/about"
  name = "About"
  weight = 0

[[languages.en.menu.main]]
  url = "/en/offer"
  name = "Offer"
  weight = 10

[[languages.en.menu.main]]
  url = "/en/pricelist"
  name = "Price list"
  weight = 20

[[languages.en.menu.main]]
  url = "/en/regulations"
  name = "Regulations"
  weight = 30

###########################

[languages.no]
  languageName = "norsk"
  weight = 2
  title = "something"

[[languages.no.menu.main]]
  url = "/no/om-meg"
  name = "Om meg"
  weight = 0

[[languages.no.menu.main]]
  url = "/no/tilbud"
  name = "Tilbud"
  weight = 10

[[languages.no.menu.main]]
  url = "/no/prisliste"
  name = "Prisliste"
  weight = 20

[[languages.no.menu.main]]
  url = "/no/forskrifter"
  name = "Forskrifter"
  weight = 30

###########################

[languages.fr]
  languageName = "français"
  weight = 4
  title = "something"

[[languages.fr.menu.main]]
  url = "/fr/a-propos-de-moi"
  name = "À propos de moi"
  weight = 0

[[languages.fr.menu.main]]
  url = "/fr/offre"
  name = "Offre"
  weight = 10

[[languages.fr.menu.main]]
  url = "/fr/tarifs"
  name = "Tarifs"
  weight = 20

[[languages.fr.menu.main]]
  url = "/fr/reglement"
  name = "Règlement"
  weight = 30


###########################

[languages.pl]
  languageName = "polsk"
  weight = 1
  title = "something"

[[languages.pl.menu.main]]
  url = "/pl/o-mnie"
  name = "O mnie"
  weight = 0

[[languages.pl.menu.main]]
  url = "/pl/oferta"
  name = "Oferta"
  weight = 10

[[languages.pl.menu.main]]
  url = "/pl/cennik"
  name = "Cennik"
  weight = 20

[[languages.pl.menu.main]]
  url = "/pl/regulamin"
  name = "Regulamin"
  weight = 30

[solved] Multi Language site not building content
#2

Have you read the “notes” section of the release notes?


#3

If you’re referring to this, https://github.com/gohugoio/hugo/issues/4380, then yes, --gc doesn’t seem to do anything different:

                   | PL | NO | EN | FR
+------------------+----+----+----+----+
  Pages            | 10 | 10 | 10 | 10
  Paginator pages  |  0 |  0 |  0 |  0
  Non-page files   |  0 |  0 |  0 |  0
  Static files     | 20 | 20 | 20 | 20
  Processed images |  0 |  0 |  0 |  0
  Aliases          |  1 |  1 |  1 |  1
  Sitemaps         |  2 |  1 |  1 |  1
  Cleaned          |  0 |  0 |  0 |  0

#4

No, I’m talking about the “note section” of the release notes of the 5 versions from 0.31 to 0.36.


#5

Ok, I’ve just the reading for all the versions since v0.31.1. There are a few mentions where the languages have been updated or affected, but there’s nothing about the way content is built, how the config could have been affected or any information stating a notable difference in the way Hugo parses the languages.

What can I do to help diagnose such madness?


#6

You can start by stop using such words to describe the work of others.

What you experience is clearly described in the release notes, and it has been widely discussed on this forum. Use the search.


#7