We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Zola version: 0.19.2
The example at https://www.getzola.org/documentation/content/image-processing/#creating-picture-galleries has:
<div> {% for asset in page.assets -%} {%- if asset is matching("[.](jpg|png)$") -%} {% set image = resize_image(path=asset, width=240, height=180) %} <a href="{{ get_url(path=asset) }}" target="_blank"> <img src="{{ image.url }}" /> </a> {%- endif %} {%- endfor %} </div>
But when I try to use it, the get_url(...) gives the wrong URL.
get_url(...)
In my test case I expected to see: http://127.0.0.1:1111/people/frank-may/funeral_page_1.png
But I actually got http://127.0.0.1:1111/people/Frank_May/funeral_page_1.png
This gives a 404 error.
This is for a reference from content/people/Frank_May/index.md to content/people/Frank_May/funeral_page_1.png.
content/people/Frank_May/index.md
content/people/Frank_May/funeral_page_1.png
I suspect the problem is the underscore in the section directory name.
The text was updated successfully, but these errors were encountered:
I believe it's the same issue as #2598
Sorry, something went wrong.
Looks like it. Closing this bug report.
No branches or pull requests
Bug Report
Environment
Zola version: 0.19.2
Expected Behavior
The example at https://www.getzola.org/documentation/content/image-processing/#creating-picture-galleries has:
But when I try to use it, the
get_url(...)
gives the wrong URL.In my test case I expected to see:
http://127.0.0.1:1111/people/frank-may/funeral_page_1.png
But I actually got
http://127.0.0.1:1111/people/Frank_May/funeral_page_1.png
This gives a 404 error.
This is for a reference from
content/people/Frank_May/index.md
tocontent/people/Frank_May/funeral_page_1.png
.I suspect the problem is the underscore in the section directory name.
The text was updated successfully, but these errors were encountered: