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
My index.html template loops over the different posts in content and displays their summary when available on the landing page of my blog, inviting visitors to click on a post to read the rest of it.
I have a couple of posts which contain an image in their summary, and those images are included using a relative path thanks to the co-location mechanism. Something like ![My image](asset-1.jpg) in Markdown. It works perfectly fine when a specific post is opened (rendered with the page.html template) but not in the post summaries on the landing page where the links still point to the assets like if they were in the same directory as the index page.
Expected Behaviour
I would like to be able to use relative paths to co-located assets in Markdown anywhere on my website, and not only in the posts in question.
It used to work fine until I pushed an update to my blog recently using the latest version of Zola. The update broke the image links in my post summaries. I am not sure which version of Zola I was using the last time the expected behaviour described in this issue was working fine.
Downgrading to zola 0.14.1 is a workaround for now. I wasted an hour trying to downgrade Zola with linuxbrew and snapcraft, but I realized those package managers don't support versions??? That was surprising to me, I though the point of a package manager is to manage packages and their versions.
Anyway, thanks a lot for providing binaries on the Github release pages, from there I could get version 0.14.1 working quickly.
Bug Report
Environment
Zola version: 0.15.3
Current Behaviour
I use the following file structure for my personal blog:
My
index.html
template loops over the different posts incontent
and displays their summary when available on the landing page of my blog, inviting visitors to click on a post to read the rest of it.I have a couple of posts which contain an image in their summary, and those images are included using a relative path thanks to the co-location mechanism. Something like
![My image](asset-1.jpg)
in Markdown. It works perfectly fine when a specific post is opened (rendered with thepage.html
template) but not in the post summaries on the landing page where the links still point to the assets like if they were in the same directory as the index page.Expected Behaviour
I would like to be able to use relative paths to co-located assets in Markdown anywhere on my website, and not only in the posts in question.
It used to work fine until I pushed an update to my blog recently using the latest version of Zola. The update broke the image links in my post summaries. I am not sure which version of Zola I was using the last time the expected behaviour described in this issue was working fine.
Step to reproduce
My personal blog's source code is available here.
The text was updated successfully, but these errors were encountered: