-
-
Notifications
You must be signed in to change notification settings - Fork 48
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Header Image Path #415
Comments
Hello! Can you share the exact content of the Have you checked the network monitor (Firefox docs) to see what happens when it attempts to load the file? Did you try to find the image in the I would try to replicate the demo first:
+++
title = "Latest posts"
sort_by = "date"
template = "section.html"
[extra]
header = {title = "title", img = "img/main.webp", img_alt = "alt" }
+++ |
I will try those suggestions, thank you. The demo image does not work.
The image does show up in the public directory In network monitor, it shows up as 'blocked.' |
I changed the first line in content-security-policy.html to How should I configure to allow for the image source, but in a more secure way? The image is in static/img in the root dir. |
That's helpful! You mentioned you visit a localhost URL. Is that the URL Zola provides when you run For me, it's Try removing the CSP and visiting the URL Zola returns upon |
That worked, thanks! |
Happy to hear! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Bug Report
Environment
Gentoo linux
Zola version: 0.19.2
tabi version or commit: V3.0.0
Expected Behavior
Tell us what should have happened.
I cannot get the header image to display. I placed it in static/img, and set the path as img/image.png in my _index.md in content, but it still does not display. When visiting localhost:1111/img/image.png, it does display, but currently there is nothing except the img_alt text.
The only way I can get it to display is by specifying it in home_banner.html
The text was updated successfully, but these errors were encountered: