setsevireon / photophobia

A boring dark theme for Hugo.
https://setsevireon.github.io/photophobia
MIT License
23 stars 6 forks source link

Error building site: render of "404" failed #113

Closed leksuss closed 9 months ago

leksuss commented 1 year ago

Hi! You have a great theme! But I have a problem with hosting my Hugo blog on GitHub. I use this instructions and workflow crashes with error: render of "404" failed.

Build Hugo logs ``` Run hugo \ hugo \ --gc \ --minify \ --baseURL "https://leksuss.github.io/leks.us/" shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: HUGO_VERSION: 0.111.3 GITHUB_PAGES: true HUGO_ENVIRONMENT: production HUGO_ENV: production Start building sites … hugo v0.111.3-5d4eb5154e1fed1[2](https://github.com/leksuss/leks.us/actions/runs/4641713931/jobs/8214969157#step:7:2)5ca8e9b5a0[3](https://github.com/leksuss/leks.us/actions/runs/4641713931/jobs/8214969157#step:7:3)15c[4](https://github.com/leksuss/leks.us/actions/runs/4641713931/jobs/8214969157#step:7:4)180dab192+extended linux/amd64 BuildDate=2023-03-12T11:40:[5](https://github.com/leksuss/leks.us/actions/runs/4641713931/jobs/8214969157#step:7:5)0Z VendorInfo=gohugoio Error: Error building site: render of "404" failed: "/home/runner/work/leks.us/leks.us/themes/photophobia/layouts/_default/baseof.html:45:29": execute of template failed: template: 404.html:45:29: executing "header" at : error calling partial: "/home/runner/work/leks.us/leks.us/themes/photophobia/layouts/partials/site-header.html:3:21": execute of template failed: template: partials/site-header.html:3:21: executing "partials/site-header.html" at <.Site.Home.RelPermalink>: error calling RelPermalink: runtime error: invalid memory address or nil pointer dereference Total in 2[6](https://github.com/leksuss/leks.us/actions/runs/4641713931/jobs/8214969157#step:7:6) ms Error: Process completed with exit code 255. ```

I found solution here. After moving 404.html from layouts/404.html to layouts/_default/404.html build was successfully created.

setsevireon commented 9 months ago

I could not reproduce.