Using Images from post directory #456
-
So, I have been finally able to update the theme to the latest release, including Hugo pipes version, but unfortunately this commit c08bca7 is breaking all posts images preview on my website because of my posts structure which is:
Inside I don't like putting all images in one directory and prefer my current approach. I have tried debugging Suggestions will be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Sorry for the inconvenience. Because the previous approach is in conflict with the Hugo built in Twitter Card and Open graph templates(the If you're using a page resource as the thumbnails. You'll need to move the thumbnail image to page level, and rename it to For example: As for the rest of images under |
Beta Was this translation helpful? Give feedback.
-
@razonyang a few folks have run into this issue-- what can be done to improve the change I introduced or would you consider it to be a documentation "problem"? |
Beta Was this translation helpful? Give feedback.
Sorry for the inconvenience. Because the previous approach is in conflict with the Hugo built in Twitter Card and Open graph templates(the
images
will not be treated as page resources).If you're using a page resource as the thumbnails. You'll need to move the thumbnail image to page level, and rename it to
feature.png
,cover.png
orthumbnail.png
etc. Finally, delete theimages
parameter.For example:
/posts/my-page/images/my-thumbnail.png
to/posts/my-page/featured.png
.As for the rest of images under
images
folder are still processed by Markdown correctly.