Single page not generated after upgrading to v0.32.0+

Hello

I’m in the progress of upgrading from a very old version of Hugo (v0.22.0) to the newest version.
After upgrading to v0.38, Hugo only generate the home page, but not any of the single page (/store, /contact). I have discovered after a bit trail and error, that is work as expected with v0.31, but not v0.32 (and v0.38), so something did change in v0.32? I have read the release note (https://github.com/gohugoio/hugo/releases/tag/v0.32), but I’m not sure what I need to change.

The theme is homemade and based on Bootstrap 3 Narrow jumbotron example: https://getbootstrap.com/docs/3.3/examples/jumbotron-narrow/

Debug log (v0.38):

$ hugo --debug -v
INFO 2018/04/07 18:17:10 Using config file: /home/foo/example.com/config.toml
Building sites … DEBUG 2018/04/07 18:17:10 Load I18n from ["PathSpec, language \"en\", prefix \"\", multilingual: bool"]
WARN 2018/04/07 18:17:10 No translation bundle found for default language "en"
WARN 2018/04/07 18:17:10 Translation func for language en not found, use default.
WARN 2018/04/07 18:17:10 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
INFO 2018/04/07 18:17:10 syncing static files to /home/foo/example.com/public/
DEBUG 2018/04/07 18:17:10 Load templates from path "/home/foo/example.com/layouts" prefix ""
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/_default
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/_default/home.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/_default/home.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/_default/single.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/_default/single.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/event
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/event/birthday.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/event/birthday.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/footer.copyright.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/footer.copyright.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/footer.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/footer.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/header.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/header.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/header.includes.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/header.includes.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/meta.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/meta.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/partials/navbar.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/partials/navbar.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/post
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/post/single.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/post/single.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/shortcodes
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/shortcodes/jumbotron.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/shortcodes/jumbotron.html
DEBUG 2018/04/07 18:17:10 Template path /home/foo/example.com/layouts/shortcodes/pp.html
DEBUG 2018/04/07 18:17:10 Add template file from path /home/foo/example.com/layouts/shortcodes/pp.html
DEBUG 2018/04/07 18:17:10 Load Data from 1 source(s)
INFO 2018/04/07 18:17:10 found taxonomies: map[string]string{"tag":"tags", "category":"categories"}
DEBUG 2018/04/07 18:17:10 found menu: "main", in site config
DEBUG 2018/04/07 18:17:10 found menu: "main", in "Forside"
DEBUG 2018/04/07 18:17:10 Replace 1 shortcodes in "index"
DEBUG 2018/04/07 18:17:10 Replace 1 shortcodes in "shop"
DEBUG 2018/04/07 18:17:10 Replace 1 shortcodes in "_index"
DEBUG 2018/04/07 18:17:10 Replace 1 shortcodes in "contact"
DEBUG 2018/04/07 18:17:10 Replace 1 shortcodes in "success"
DEBUG 2018/04/07 18:17:10 Render page to "/index.html" with layouts ["page/single.en.html.html" "theme/page/single.en.html.html" "page/single.html.html" "theme/page/single.html.html" "page/single.en.html" "theme/page/single.en.html" "page/single.html" "theme/page/single.html" "_default/single.en.html.html" "theme/_default/single.en.html.html" "_default/single.html.html" "theme/_default/single.html.html" "_default/single.en.html" "theme/_default/single.en.html" "_default/single.html" "theme/_default/single.html"]
DEBUG 2018/04/07 18:17:10 Render home to "/index.html" with layouts ["page/index.en.html.html" "theme/page/index.en.html.html" "page/home.en.html.html" "theme/page/home.en.html.html" "page/list.en.html.html" "theme/page/list.en.html.html" "page/index.html.html" "theme/page/index.html.html" "page/home.html.html" "theme/page/home.html.html" "page/list.html.html" "theme/page/list.html.html" "page/index.en.html" "theme/page/index.en.html" "page/home.en.html" "theme/page/home.en.html" "page/list.en.html" "theme/page/list.en.html" "page/index.html" "theme/page/index.html" "page/home.html" "theme/page/home.html" "page/list.html" "theme/page/list.html" "index.en.html.html" "theme/index.en.html.html" "home.en.html.html" "theme/home.en.html.html" "list.en.html.html" "theme/list.en.html.html" "index.html.html" "theme/index.html.html" "home.html.html" "theme/home.html.html" "list.html.html" "theme/list.html.html" "index.en.html" "theme/index.en.html" "home.en.html" "theme/home.en.html" "list.en.html" "theme/list.en.html" "index.html" "theme/index.html" "home.html" "theme/home.html" "list.html" "theme/list.html" "_default/index.en.html.html" "theme/_default/index.en.html.html" "_default/home.en.html.html" "theme/_default/home.en.html.html" "_default/list.en.html.html" "theme/_default/list.en.html.html" "_default/index.html.html" "theme/_default/index.html.html" "_default/home.html.html" "theme/_default/home.html.html" "_default/list.html.html" "theme/_default/list.html.html" "_default/index.en.html" "theme/_default/index.en.html" "_default/home.en.html" "theme/_default/home.en.html" "_default/list.en.html" "theme/_default/list.en.html" "_default/index.html" "theme/_default/index.html" "_default/home.html" "theme/_default/home.html" "_default/list.html" "theme/_default/list.html"]
DEBUG 2018/04/07 18:17:10 Render taxonomyTerm to "/tags/index.html" with layouts ["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"]
WARN 2018/04/07 18:17:10 [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]
DEBUG 2018/04/07 18:17:10 Render taxonomyTerm to "/categories/index.html" with layouts ["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/07 18:17:10 [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]
DEBUG 2018/04/07 18:17:10 Render XML for "sitemap" to "sitemap.xml"
WARN 2018/04/07 18:17:10 [en] Unable to locate layout for "404": [404.html]
DEBUG 2018/04/07 18:17:10 Render XML for "Categories" to "/categories/index.xml"
DEBUG 2018/04/07 18:17:10 Render XML for "Tags" to "/tags/index.xml"
DEBUG 2018/04/07 18:17:10 Render XML for "Example.com" to "/index.xml"

                   | EN  
+------------------+----+
  Pages            | 12  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 17  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 57 ms

Tree:

$ find | grep -v .git
.
./static
./static/favicon.ico
./static/css
./static/css/jumbotron-narrow.css
./static/css/bootstrap.css
./static/css/bootstrap.min.css
./static/css/bootstrap.css.map
./static/js
./static/js/jquery-3.3.1.min.js
./static/js/bootstrap.min.js
./static/fonts
./static/fonts/glyphicons-halflings-regular.eot
./static/fonts/glyphicons-halflings-regular.svg
./static/fonts/glyphicons-halflings-regular.ttf
./static/fonts/glyphicons-halflings-regular.woff
./config.toml
./layouts
./layouts/partials
./layouts/partials/footer.html
./layouts/partials/footer.copyright.html
./layouts/partials/navbar.html
./layouts/partials/header.html
./layouts/partials/header.includes.html
./layouts/partials/meta.html
./layouts/_default
./layouts/_default/single.html
./layouts/shortcodes
./layouts/shortcodes/jumbotron.html
./layouts/shortcodes/pp.html
./content
./content/index.md
./content/success.md
./content/contact.md
./content/shop.md

OS: ArchLinux

  • Kristian Klausen

See
Page Bundles

If you were using index.md your Sections are converted into a leaf bundle hence the “missing” pages. Use _index.md

Hi

I just tried creating content/about/index.md and ran hugo, afterwards I renamed the file to content/about/_index.md and ran hugo again, it didn’t change anything, hugo still only generate the home page.

Content of index.md

+++
title = "About"
+++


# foo

No. What you had originally under /about/ should work. My reply was meant for Sections i.e. folders with many content pages.

Do you have a link to your Hugo site repository?

I have every single page in the root of content.

./content/index.md
./content/success.md
./content/contact.md
./content/shop.md
./content/about
./content/about/_index.md

Sadly I don’t.

Hence everything is part of a Page Bundle even the /about/ folder.

These pages do not have their own URL they’re available only with .Resources

To have the previous behaviour you should change ./content/index.md to ./content/_index.md

Oh, now I get it. Thank you :slight_smile:

Hmm, so Hugo use a different layout file (layouts/_default/index.html) for the homepage [1]. Is there anyway I can let the homepage use the singlepage layout file (layouts/_default/single.html)? Duplicating the singlepage layout file seems stupid.

[1] https://gohugo.io/templates/homepage/