Sped0n / bridget

Bridget is a minimal Hugo theme for photographers/visual artists, powered by Solid.js.
https://bridget-demo.sped0n.com
MIT License
73 stars 19 forks source link

Error building site #354

Closed wisewtf closed 2 months ago

wisewtf commented 3 months ago

Step to reproduce

  1. Version of Hugo: hugo v0.128.2-de36c1a95d28595d8243fd8b891665b069ed0850+extended linux/arm64 BuildDate=2024-07-04T08:13:25Z VendorInfo=gohugoio
  2. hugo new site blablabla
  3. Follow git documentation here
  4. Copy all .toml files from exampleSite to site root
  5. Edit hugo.toml to have replacements = "github.com/Sped0n/bridget/v2 -> ../.." to [...] -> bridget (because it seems like hugo adds theme/ by default now
  6. Go back to site root and execute hugo

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

Sped0n commented 3 months ago

Can you show me your content directory structure?

wisewtf commented 3 months ago

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?

Sped0n commented 2 months ago

Have you place the images in the same directory as index.md?