Build failed to render pages on main branch

I am getting an error in the build phase on GitHub by the following command: hugo --minify
on localhost the website is compiling without any problems but on git the compilation fails each time i commit something to main. can anyone give me a hint what could be the problem here?

Error:
Error: Error building site: failed to render pages: render of “home” failed: execute of template failed: template: index.html:58:18: executing “index.html” at <partial (printf “sections/%s.html” (replace (lower .section.id) " " “-”)) .>: error calling partial: execute of template failed: template: partials/sections/skills.html:17:11: executing “partials/sections/skills.html” at <partial “cards/skill.html” .>: error calling partial: “/home/runner/work/SSeptimiu.github.io/SSeptimiu.github.io/themes/toha/layouts/partials/cards/skill.html:8:29”: execute of template failed: template: partials/cards/skill.html:8:29: executing “partials/cards/skill.html” at <$logoImage.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType

A link to your repo would make it possible to help you without guessing.

GitHub Repo: GitHub - SSeptimiu/SSeptimiu.github.io

I assume your development OS is case-insensitive, but your production environment is not.

See:
https://github.com/SSeptimiu/SSeptimiu.github.io/blob/main/data/en/sections/skills.yaml#L30

Change this:

logo: "/images/sections/skills/Azure.png"

to this:

logo: "/images/sections/skills/azure.png"

Many thanks! The problem was indeed the case sensitive with Azure.png but wouldn’t have found it without your support. Thank you again!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.