-
Notifications
You must be signed in to change notification settings - Fork 996
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
get_image_metadata
cannot load image files under /static
#911
Comments
Hmm that would be a breaking change :/ But it makes sense to be able to use it on assets from static I think |
perhaps just require a get_url() or “/static/foo.jpg” to differentiate? Sent with GitHawk |
Two related things:
|
For 2, the front page is not magic. It creates an empty section if there is no |
Should be fixed in 0.14. |
Bug Report
Environment
Zola version: 0.9.0
Expected Behavior
get_image_metadata("foo.jpg")
successfully loads metadata ofstatic/foo.jpg
if there are nocontent/foo.jpg
.Current Behavior
get_image_metadata("foo.jpg")
complains "Reason:get_image_meta
: Cannot find path: foo.jpg" even if there isstatic/foo.jpg
.Step to reproduce
static
folder, e.g.static/foo.jpg
.content/foo.jpg
.get_image_metadata(path="foo.jpg")
in a template.zola build
orzola serve
.`get_image_meta`: Cannot find path: foo.jpg
error.Additional info
I think the lines below should be changed in some way.
zola/components/site/src/lib.rs
Lines 529 to 532 in e194294
zola/components/templates/src/global_fns/mod.rs
Lines 167 to 170 in e194294
The text was updated successfully, but these errors were encountered: