Problem with images in my Markdown file

Hey Guys!

Im using the Hugo framework since it is great with Markdown, but when I type the code to show an image the image wont show up on the page. Any ideas why?

My code : ![](/static/slack.png)

Regards,

Hugo.

Have a look at the URL of the img element as it is shown in the developer tools of your favorite browser. I suppose that you should drop the leading /. You might also consider using the search function in the forum – I seem to remember that similar questions have been asked and answered here before.

1 Like

Also, remove /static from the URL. I would recommend you create an images folder inside the static folder so your URLs are /images/image.png

1 Like

@vado is correct.

See https://gohugo.io/content-management/static-files

1 Like

Thanks @vado, @chrillek for the answers and @jmooring for veryfing!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.