Skip to content

Conversation

@Chen-Gary
Copy link

If we add an image to a post without the right sidebar (e.g. the FAQ page in the demo), the image will not resize automatically as the window size changes.

image

I fix this by adding a Hugo "Markdown render hooks" for markdown image. Reference: https://gohugo.io/templates/render-hooks/#image-markdown-example

The image will render correctly with this file added.

image

Note: Posts with the right sidebar do render images correctly, even without this render hook (e.g. this post in demo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant