A little Git tip
So I started out on my first steps with Hugo and ran into a little issue right at the beginning. I had started a new site, added a theme as Git submodule, pushed the site to my Forgejo instance and then cloned the site on to another computer. So far so good, I suppose. But I was wrong: on running hugo serve I was greeted with a nasty warning (and a blank page as a result).
WARN found no layout file for "html" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "term": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN found no layout file for "html" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
First, I checked if I had different Hugo versions on the two different computers: no. Then I looked at the site folder contents: all seemed there. Well, “seemed” is the clue here. The simple git clone $REPOSITORY had ignored my theme … So I learned that I need to use git clone --recurse-submodules $REPOSITORY to get everything.