Closed wisewtf closed 2 months ago
Can you show me your content directory structure?
Can you show me your content directory structure?
Nevermind @Sped0n, I seem to be very stupid as I forgot to place the content structure.
That said, now it builds with the example site's content, it seems like the website it built is empty as no example image pops up when I move my mouse.
What could I look for here?
Have you place the images in the same directory as index.md?
Step to reproduce
hugo v0.128.2-de36c1a95d28595d8243fd8b891665b069ed0850+extended linux/arm64 BuildDate=2024-07-04T08:13:25Z VendorInfo=gohugoio
hugo new site blablabla
replacements = "github.com/Sped0n/bridget/v2 -> ../.."
to[...] -> bridget
(because it seems like hugo adds theme/ by default nowhugo
Expected behaviour
Site builds correctly
Actual Behaviour
Building fails because of a menu variable called in HTML that is either empty or not defined somewhere
Logs
root@anubis:/var/www/photography# hugo -D Start building sites … hugo v0.128.2-de36c1a95d28595d8243fd8b891665b069ed0850+extended linux/arm64 BuildDate=2024-07-04T08:13:25Z VendorInfo=gohugoio
Total in 121 ms Error: error building site: render: failed to render pages: render of "404" failed: "/var/www/photography/themes/bridget/layouts/404.html:3:8": execute of template failed: template: 404.html:3:8: executing "main" at <partial "nav.html" .>: error calling partial: "/var/www/photography/themes/bridget/layouts/partials/nav.html:12:16": execute of template failed: template: partials/nav.html:12:16: executing "partials/nav.html" at <len $menus>: error calling len: reflect: call of reflect.Value.Type on zero Value
Addition details
No response
Hugo version
hugo v0.128.2-de36c1a95d28595d8243fd8b891665b069ed0850+extended
Bridget version
latest
OS version
Ubuntu Server 24.04 LTS
Verify steps