Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building site #354

Open
2 of 3 tasks
wisewtf opened this issue Jul 4, 2024 · 3 comments
Open
2 of 3 tasks

Error building site #354

wisewtf opened this issue Jul 4, 2024 · 3 comments
Labels
T: Question Further information is requested

Comments

@wisewtf
Copy link

wisewtf commented Jul 4, 2024

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

  • Pull request is welcome. Check this if you want to start a pull request
  • I have searched on Issue Tracker, No duplicate or related open issue has been found
  • Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
@wisewtf wisewtf added S: Untriaged T: Bug Something isn't working labels Jul 4, 2024
@Sped0n Sped0n added T: Question Further information is requested and removed S: Untriaged T: Bug Something isn't working labels Jul 4, 2024
@Sped0n
Copy link
Owner

Sped0n commented Jul 4, 2024

Can you show me your content directory structure?

@wisewtf
Copy link
Author

wisewtf commented Jul 4, 2024

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
Copy link
Owner

Sped0n commented Jul 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants