Hi everyone,
I am going my first steps creating a custom theme currently.
My goal is to use the foundation theme (and fira-sans) without a CDN and provide some layouts via a Hugo Module. One can see my efforts right here: https://github.com/eljoth/eljoth-theme
So far so good, having things set up, everything works smoothly (except for fonts, but that is not so relevant right now), running hugo serve in this repository. So I packed my npm dependencies and gave the website a go.
Importing the module in another hugo module which should represent my deployable website, it does not look so well. My module gets imported (previously I was importing it privately, now it is a public one, obviously), npm install works, but running hugo server
or building the site via hugo
results in the following error:
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.
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 "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 "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 "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
and shows a 404 respectively index.html is not built into public.
From my understanding, creating an empty hugo project and importing the module which already provides kind of an example page with some content should show me the same as it does in the module repository directly.
I already tried placing everything into the assets directory, since I thought, static would not be looked up but that was wrong and it still is not working. Copying all the layouts from the theme into the website repo results in a running but not so good looking site, since all css and js is not taken.
I also had a look at the hugoio/bootstrap repo and did not find anything inspiring me to try something else, so I am running out of ideas and would be glad if one of you could give me a hint, what is wrong with my setup.
Many, many thanks in advance, looking forward to getting some food for thoughts!