Trying to get my website (https://codefloe.com/andris/website) with the new codefloe hosted pages method. I am using hugo and forgejo actions. While the workflow runs trough the only thing what one can get at the urls below:
is “not found” for the first and last link and “site not found” for the second link.
The pages branch show some generated files, although not entirely what I expected. The build step produces some warnings:
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 "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Running hugo locally on an archlinux machine it renders and serves the site properly without any warning.
Hi Andris, it looks like your Hugo theme is missing when the workflow builds the site. The theme is stored as a Git submodule, which needs to be included explicitly in the checkout step:
Please update that step in pages.yml and rerun the workflow.
This explains the missing-layout warnings: Hugo copies your images and CSS but does not generate any HTML pages. I checked that your CSS loads through both the Codefloe Pages URL and gonczol.eu, so the hosting and custom domain are working.
Your Hugo configuration uses https://gonczol.eu as the site address.
That means links to styles and images work on your domain, but miss the /website/ prefix needed on the Codefloe Pages URL.
You can keep the current setting and use gonczol.eu as your main address.
The github names are compatibility names in Forgejo.
Publishing happens on Codefloe.
You can replace the env section with these clearer names, which work exactly the same: