-
Notifications
You must be signed in to change notification settings - Fork 134
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
Issue with partials\helpers\image.html. [asset] image="image.png" breaks the site. #629
Comments
First idea would be: |
My current setup is
Just like on Syna fragments example site. Setting |
This might be related to #630 as both are issues with Windows based setups. |
Looks like a windows issue. I encountered something similar with Hugo for Windows a while back with a different theme. Will test it out on Linux and report back. |
Just tested it with Linux and it works. Is this an issue with image fallthrough or image processing in Hugo for Windows environment? I tested on Debian WSL on Windows 10.
Syna version v0.14 |
Added this issue to Hugo forum Similar to #630 |
Thanks for filing |
@mpourismaiel Let's document this issue for windows and think about a possible solution. Most likely our code assuming path "/" separators for building paths or? |
Do we need to use "" for Windows? I thought Go or Hugo would handle that. I'll document the incompatibility for now and later maybe find a fix for it. Does the image appear if it's inside |
No, it does not. Errors are slightly different though. Here are the errors I get when I set an image to be from
Everything works well on Debian WSL, Windows 10. |
I recommend using WSL and building on Linux or using WSL for production as well. Supporting Windows is kinda hard and time consuming since none of us have a Windows development environment. We will investigate the issue given the chance. We are always happy to receive Pull Requests to improve our Windows support. I'm sorry for the inconvenience. |
To add a last comment for now. We mainly support linux based systems. We'll leave this open to track and figure out what's the culprit over the long term. Assuming it might be due to our fragment logic, that adds "/" separators that are linux only. |
Is this a BUG REPORT or FEATURE REQUEST?:
bug
What happened:
I have
content/_index/services.md
list fragment with front matter parametersection = blog
.In
content/blog/chocolate/
I have content fragmentindex.md
and an imageimage.png
.Hugo throws an error when I set an image in fragment
index.md
, like so:Here are the errors I get
What you expected to happen:
I expected to see a thumbnail image for the blog post in the list fragment on my homepage.
How to reproduce it (as minimally and precisely as possible):
You can reproduce this issue with my repo by uncommenting
in
content/blog/chocolate/index.md
Anything else we need to know?:
I tried Hogo versions 0.58.3 and 0.59.1. Both throw the same error.
I fully rely on themes build in partials. I do not have any custom partials.
Environment:
The text was updated successfully, but these errors were encountered: