I found Hugo a while back and had a relatively painless time building a site. I wrote a new post for the site and rerendered it and was suprised to see my content gone.
I saw a number of logs similar to:
WARN 2019/06/27 15:34:26 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Idiomatically, warnings may be actioned, not must be actioned, thus I was suprised that my previously working setup now produced zero posts.
Given that Hugo is not 1.0 yet I understand that breaking changes happen but it is conventional to explain the break to users. Where can I find documentation explaining this breaking change?
If you have already cloned that repo, cd to the repo dir and do git submodule update --init --recursive. That will clone the theme submodule too.
Your site builds with this for me:
Building sites … WARN 2019/08/07 15:59:00 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
| EN
+------------------+-----+
Pages | 41
Paginator pages | 3
Non-page files | 0
Static files | 206
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
Total in 2317 ms
There is a warning, but just one.
found no layout file for “HTML” for “home”
You shouldn’t need to do that; you are probably just missing this in your config.toml:
pygmentsCodeFences = true # This applies to Chroma too.
Note: Put that in your config before any of the TOML tables (the ones with square brackets like [Params]).
If it’s not that, then it’s something else (may be the theme is messing with .Content somehow?), but I was able to make that go snippet render fine on my hugo server just fine. Do you want to try it out using the Ananke theme in the Hugo Quick Start tutorial?