huhu / juice

🍹 An intuitive, elegant, and responsive Zola theme for product sites.
https://juice.huhu.io
MIT License
164 stars 33 forks source link

Error when installing and running theme #19

Open nicosey opened 1 year ago

nicosey commented 1 year ago

I get errors below when calling "zola serve" after installing theme

Error: Reason: Failed to render 'index.html': error while rendering macro macros::render_header (error happened in a parent template) Error: Reason: Function call 'get_url' failed Error: Reason: Variable config.extra.juice_logo_path not found in context while rendering '_macros.html'

nicosey commented 1 year ago

Also starts with this error

'Error: Failed to render section/content/_index.md'

nicosey commented 1 year ago

This error went away when I added the following:

[extra] juice_logo_name = "" juice_logo_path = ""

nicosey commented 1 year ago

juice_logo_path does not work though

garyrob commented 1 year ago

This error went away when I added the following:

[extra] juice_logo_name = "" juice_logo_path = ""

Thanks, that worked for me! To get juice_logo_path working, I put my logo in the "static" dir, and zola build moved it to the "public" dir. Since it's at the top level in the public dir, you don't need to put "static" in the path.

vangourd commented 4 months ago

That also worked for me.

kaimast commented 4 months ago

Same here. You should update the README.