Building pages in multiple languages

Hello,

When I build my site in 3 languages, I got this :
$ hugo -D -F
Building sites  WARN 2020/08/10 13:12:56 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}

                   | FR | DE | EN
-------------------+----+----+-----
  Pages            | 49 | 41 | 36
  Paginator pages  |  0 |  0 |  0
  Non-page files   |  0 |  0 |  0
  Static files     | 26 | 26 | 26
  Processed images |  0 |  0 |  0
  Aliases          |  1 |  0 |  0
  Sitemaps         |  2 |  1 |  1
  Cleaned          |  0 |  0 |  0

Total in 870 ms

Question : why I do not have the same number of pages ?

Thanks !
cédric

Blackbox: Depending on what your content directory looks like you have all original french content, some of it is not translated into german and more of that is not translated into english. Publish a public repo so we can see how your structure looks like and we can tell you more.

Edit: What I mean is if you don’t have an actual translation of the content then it’s not created.

1 Like

And there’s a second sitemap created in the default language at the root of the website if you’ve the option defaultContentLanguageInSubdir: true.

2 Likes