[SOLVED] Non-blog site that used to generate fine now no longer does with newer version of Hugo

Site source: https://github.com/paul-hammant/tbd
Finished product: http://trunkbaseddevelopment.com/

On my Mac, with hugo 0.39 source from content/ is not making into public/
I can see images getting copied to public/ but not html from markdown. For example public/context/ does not have a public/context/index.html when it used to.

This was all working fine in 2017.

I can’t work out how to install older versions of hugo with homebrew, otherwise I would be adding in which version of hugo broke this (using bisect techniques).

Hugo -v does give warning output, but I don’t understand it:

$ hugo -v
INFO 2018/04/21 01:26:52 Using config file: /scm/tbd/config.toml
Building sites … INFO 2018/04/21 01:26:52 syncing static files to /scm/tbd/public/
WARN 2018/04/21 01:26:52 No translation bundle found for default language "en"
WARN 2018/04/21 01:26:52 Translation func for language en not found, use default.
WARN 2018/04/21 01:26:52 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
INFO 2018/04/21 01:26:53 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
WARN 2018/04/21 01:26:53 [en] Unable to locate layout for "taxonomyTerm": [categories/category.terms.en.html.html theme/categories/category.terms.en.html.html categories/terms.en.html.html theme/categories/terms.en.html.html categories/list.en.html.html theme/categories/list.en.html.html categories/category.terms.html.html theme/categories/category.terms.html.html categories/terms.html.html theme/categories/terms.html.html categories/list.html.html theme/categories/list.html.html categories/category.terms.en.html theme/categories/category.terms.en.html categories/terms.en.html theme/categories/terms.en.html categories/list.en.html theme/categories/list.en.html categories/category.terms.html theme/categories/category.terms.html categories/terms.html theme/categories/terms.html categories/list.html theme/categories/list.html taxonomy/category.terms.en.html.html theme/taxonomy/category.terms.en.html.html taxonomy/terms.en.html.html theme/taxonomy/terms.en.html.html taxonomy/list.en.html.html theme/taxonomy/list.en.html.html taxonomy/category.terms.html.html theme/taxonomy/category.terms.html.html taxonomy/terms.html.html theme/taxonomy/terms.html.html taxonomy/list.html.html theme/taxonomy/list.html.html taxonomy/category.terms.en.html theme/taxonomy/category.terms.en.html taxonomy/terms.en.html theme/taxonomy/terms.en.html taxonomy/list.en.html theme/taxonomy/list.en.html taxonomy/category.terms.html theme/taxonomy/category.terms.html taxonomy/terms.html theme/taxonomy/terms.html taxonomy/list.html theme/taxonomy/list.html category/category.terms.en.html.html theme/category/category.terms.en.html.html category/terms.en.html.html theme/category/terms.en.html.html category/list.en.html.html theme/category/list.en.html.html category/category.terms.html.html theme/category/category.terms.html.html category/terms.html.html theme/category/terms.html.html category/list.html.html theme/category/list.html.html category/category.terms.en.html theme/category/category.terms.en.html category/terms.en.html theme/category/terms.en.html category/list.en.html theme/category/list.en.html category/category.terms.html theme/category/category.terms.html category/terms.html theme/category/terms.html category/list.html theme/category/list.html _default/category.terms.en.html.html theme/_default/category.terms.en.html.html _default/terms.en.html.html theme/_default/terms.en.html.html _default/list.en.html.html theme/_default/list.en.html.html _default/category.terms.html.html theme/_default/category.terms.html.html _default/terms.html.html theme/_default/terms.html.html _default/list.html.html theme/_default/list.html.html _default/category.terms.en.html theme/_default/category.terms.en.html _default/terms.en.html theme/_default/terms.en.html _default/list.en.html theme/_default/list.en.html _default/category.terms.html theme/_default/category.terms.html _default/terms.html theme/_default/terms.html _default/list.html theme/_default/list.html]
WARN 2018/04/21 01:26:53 [en] Unable to locate layout for "taxonomyTerm": [tags/tag.terms.en.html.html theme/tags/tag.terms.en.html.html tags/terms.en.html.html theme/tags/terms.en.html.html tags/list.en.html.html theme/tags/list.en.html.html tags/tag.terms.html.html theme/tags/tag.terms.html.html tags/terms.html.html theme/tags/terms.html.html tags/list.html.html theme/tags/list.html.html tags/tag.terms.en.html theme/tags/tag.terms.en.html tags/terms.en.html theme/tags/terms.en.html tags/list.en.html theme/tags/list.en.html tags/tag.terms.html theme/tags/tag.terms.html tags/terms.html theme/tags/terms.html tags/list.html theme/tags/list.html taxonomy/tag.terms.en.html.html theme/taxonomy/tag.terms.en.html.html taxonomy/terms.en.html.html theme/taxonomy/terms.en.html.html taxonomy/list.en.html.html theme/taxonomy/list.en.html.html taxonomy/tag.terms.html.html theme/taxonomy/tag.terms.html.html taxonomy/terms.html.html theme/taxonomy/terms.html.html taxonomy/list.html.html theme/taxonomy/list.html.html taxonomy/tag.terms.en.html theme/taxonomy/tag.terms.en.html taxonomy/terms.en.html theme/taxonomy/terms.en.html taxonomy/list.en.html theme/taxonomy/list.en.html taxonomy/tag.terms.html theme/taxonomy/tag.terms.html taxonomy/terms.html theme/taxonomy/terms.html taxonomy/list.html theme/taxonomy/list.html tag/tag.terms.en.html.html theme/tag/tag.terms.en.html.html tag/terms.en.html.html theme/tag/terms.en.html.html tag/list.en.html.html theme/tag/list.en.html.html tag/tag.terms.html.html theme/tag/tag.terms.html.html tag/terms.html.html theme/tag/terms.html.html tag/list.html.html theme/tag/list.html.html tag/tag.terms.en.html theme/tag/tag.terms.en.html tag/terms.en.html theme/tag/terms.en.html tag/list.en.html theme/tag/list.en.html tag/tag.terms.html theme/tag/tag.terms.html tag/terms.html theme/tag/terms.html tag/list.html theme/tag/list.html _default/tag.terms.en.html.html theme/_default/tag.terms.en.html.html _default/terms.en.html.html theme/_default/terms.en.html.html _default/list.en.html.html theme/_default/list.en.html.html _default/tag.terms.html.html theme/_default/tag.terms.html.html _default/terms.html.html theme/_default/terms.html.html _default/list.html.html theme/_default/list.html.html _default/tag.terms.en.html theme/_default/tag.terms.en.html _default/terms.en.html theme/_default/terms.en.html _default/list.en.html theme/_default/list.en.html _default/tag.terms.html theme/_default/tag.terms.html _default/terms.html theme/_default/terms.html _default/list.html theme/_default/list.html]

                   | EN  
+------------------+----+
  Pages            | 30  
  Paginator pages  |  0  
  Non-page files   | 53  
  Static files     | 16  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 2223 ms

I’ve found a technique to install older versions of hugo via the Mac’s homebrew:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/97de0af55d4093bb0fcf5a0644390eea1cc54fec/Formula/hugo.rb

^ gives version 0.32 of hugo.

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/2c83c0b05bb8e070bb713dc4b5d7ab09405040d3/Formula/hugo.rb

^ gives version 0.31.1 of hugo.

Version 0.31.1 works fine with a clone of my ‘tbd’ repo, whereas v 0.32 exhibits the problem I am raising. Check the contents of public/context/ for each run (remember to delete public/ between attempts).

Thus, something in v 0.32 of hugo silently broke my site. The sites of others too as I’ve spend hours reading about similar problems, but those folks became shy at the suggestion of making it reproducible in a GH repo. Mine’s a public site with public source, so I’ve not mountain of work to make this reproducible.

You probably want to check out the new Page Bundles feature that appeared in v 0.32. That is almost certainly what is causing your issue.

As you found out, it’s not always a good idea to just brew update without checking what joys the update will bring … :wink:

Adding to what @bluefuzz said under the root of /content/ you have an index.md and as a result everything else has become part of a leaf bundle. Start your debugging by renaming it to _index.md

1 Like

renaming content/index.md to content/_index.md worked, thanks.