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 when installing and running theme #19

Open
nicosey opened this issue Jul 23, 2023 · 6 comments
Open

Error when installing and running theme #19

nicosey opened this issue Jul 23, 2023 · 6 comments

Comments

@nicosey
Copy link

nicosey commented Jul 23, 2023

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

nicosey commented Jul 23, 2023

Also starts with this error

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

@nicosey
Copy link
Author

nicosey commented Jul 24, 2023

This error went away when I added the following:

[extra]
juice_logo_name = ""
juice_logo_path = ""

@nicosey
Copy link
Author

nicosey commented Jul 24, 2023

juice_logo_path does not work though

@garyrob
Copy link

garyrob commented Aug 14, 2023

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

That also worked for me.

@kaimast
Copy link

kaimast commented Apr 30, 2024

Same here. You should update the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants