Skip to content

Using Images from post directory #456

Answered by razonyang
yshalsager asked this question in Q&A
Discussion options

You must be logged in to vote

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 or thumbnail.png etc. Finally, delete the images 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.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@razonyang
Comment options

@razonyang
Comment options

@yshalsager
Comment options

@yshalsager
Comment options

@razonyang
Comment options

Answer selected by yshalsager
Comment options

You must be logged in to vote
1 reply
@razonyang
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants