So the two issues (hugo server != locally compiled hugo and hugo server != GH Pages):
Hugo server does not match local
Not verified, but probably something to do with this: Hugo static styling not working, whereas hugo server works.
XML no style information on GH Pages
This was due to a problem in my GH Action script. There were warnings in the build that I didn’t catch before:
Building sites … WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "taxonomyTerm": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "HTML" for "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "JSON" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2019/11/29 20:46:29 found no layout file for "webappmanifest" for "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
I forgot to add a submodules: true
to my action.sh
in the GH Action, which caused hugo-academic (which is a submodule in my source repo) to not load correctly.