andromeda-light-hugo icon indicating copy to clipboard operation
andromeda-light-hugo copied to clipboard

Images in posts cannot be displayed

Open nataliepjlin opened this issue 2 years ago • 3 comments

My blog post: https://upyouth.netlify.app/blog/post-2/ I would like to add an image in my post, but the image cannot be displayed. How can I fix this issue? image image image

nataliepjlin avatar May 18 '22 05:05 nataliepjlin

Hello @nataliepjlin

Please use image shortcode, here is an example {{< image src="images/blog/01.jpg" >}}

tfsomrat avatar May 19 '22 03:05 tfsomrat

@tfsomrat How do I resize the images? ( I tried {{< image src="images/blog/01.jpg" width="40%">}} but it didn't work )

nataliepjlin avatar May 20 '22 02:05 nataliepjlin

Use px instead of %, for more info, visit https://github.com/gethugothemes/hugo-modules/blob/master/shortcodes/image/README.md#shortcode-implementation

somratpro avatar May 20 '22 05:05 somratpro