gethugothemes / bookworm-light-hugo

Bookworm is a clean and modern Hugo blog theme focused on high speed and support multiple authors.
https://gethugothemes.com/products/bookworm/?utm_source=bookworm_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
100 stars 74 forks source link

static file #11

Closed shabane closed 2 years ago

shabane commented 2 years ago

how we can add a static file to a md

![example image](/images/post/example.jpg)

this dosen't work

tfsomrat commented 2 years ago

Hey @shabane

We are using Hugo Pipe to process all the images for faster rendering. that's why you need to call a shortcode to display an image. All the shortcodes are available on the elements page. check it out.

{{< image src="images/post/01.jpg" >}}

but if you still want to call an image like MD format, then you need to place this image in the static folder, instead of the assets folder. thank you

shabane commented 2 years ago

hi, thank you for your answer. it's worked well now. many many thank you

tfsomrat commented 2 years ago

Thanks for your feedback @shabane , Hope you like our theme. A star to the repository would be much appreciated.