-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Unable to use CDN for post featured image #537
Comments
At the same time, as I believe this applies to the same issue, one would need to be able to specify his own source set. For example the picture tag would look like:
If this is not done and you serve a specific size of image only, Google will complain and of course the page performance is hurt. It would be nice to have control over this, like a partial or something. Thanks |
I don't have a set-up Cloudflare Images account, would you please provide the Markdown code snippet for reproducing this issue? I tested some images without extension from other places(Tencent Cloud Object Storage), but works:
|
How did you test this? I used the image hugo variable for the featured post image. |
Which variable do you use? I just put the image inside the article content. |
Ah, I see. Well I used: index.md:
Is this not the right place to set a featured image for a post? Thanks |
Yep, it's right, but it's still work for me. Does all the Cloudflare images fails to build? It would be better if you provide the CDN URL for me. You can also send it to me via email instead of post it here. |
Sent, thanks. |
I just tried again, not working. Hugo server won't even start. What's different in your setup/config? |
I also confirmed that the |
Very weird, and sad. |
I cannot understand how this works for you, when I checked featured-image.html and the code is clearly looking for local images and trying to extract extension etc:
Do you have a different code for this or? It just does not make sense. |
No, the source code is the same. Could you please provide the following information?
Could you please remove the posts, so that Hugo can build the site successfully, and then create a new post with the following content:
If everything is OK, the issue isn't about this picture. You can send your site to me(via email or repository) for reproducing this issue if you don't mind. |
I did exactly what you asked, and the error is still there.
I`m not really comfortable sharing the entire project, I have stuff there... |
So far this is the biggest and only issue I`m unable to resolve, which is really sad. After reading over and over the code from the featured- partial, I just cannot understand how it can parse the URL without file extension (which is the error hugo complains about). Perhaps you have something different, because this is not really possible for it to magically work for you. |
I'll try to reproduce on Windows tonight at home. |
I`m happy to share a team viewer session if you want to see this issue "live". |
Reproduced the issue on Windows successful. |
Describe the bug
I tried adding my image coming from Cloudflare Images into a post and the Hugo build fails.
Output:
I believe the problem is that there is no file extension included into the URL from Cloudflare Images.
Can you advise on a solution?
Thanks.
The text was updated successfully, but these errors were encountered: