You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_url should return a cachebusting URL to an image as it did in 0.16
Current Behavior
Builds will fail saying get_url can't find or open the image file. This seems to only apply to image files, text files like .js will work just fine. This has only started happening as of 0.17 and was not an issue with 0.16.
Step to reproduce
Run zola init and use default config
Put two images called test1.png and test2.png along with a text file called test.js in static
Create an index.html in templates with the following content:
<!-- This finds this text file no problem, even with cachebust on --><scriptsrc="{{ get_url(path='test.js', cachebust=true) }}"></script><!-- This will find test1.png successfully --><imgsrc="{{ get_url(path='test1.png') }}"/><!-- This will fail to find test2.png --><imgsrc="{{ get_url(path='test2.png', cachebust=true) }}"/>
Run zola build
zola buildBuilding site...Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.-> Creating 0 pages (0 orphan) and 0 sectionsError: Failed to build the siteError: Failed to render section '/Users/videah/Git/zola-bug/content/_index.md'Error: Reason: Failed to render 'index.html'Error: Reason: Function call 'get_url' failedError: Reason: `get_url`: Could not find or open file test2.png
The text was updated successfully, but these errors were encountered:
Bug Report
Environment
Zola version: zola 0.17.1
Expected Behavior
get_url
should return a cachebusting URL to an image as it did in0.16
Current Behavior
Builds will fail saying
get_url
can't find or open the image file. This seems to only apply to image files, text files like.js
will work just fine. This has only started happening as of0.17
and was not an issue with0.16
.Step to reproduce
zola init
and use default configtest1.png
andtest2.png
along with a text file calledtest.js
instatic
index.html
intemplates
with the following content:zola build
The text was updated successfully, but these errors were encountered: