whiteplain icon indicating copy to clipboard operation
whiteplain copied to clipboard

How to insert image in my post?

Open noweaver opened this issue 6 years ago • 1 comments

Firstly, I am lovin' your theme; simple style and strong functions. However, I have a few problems. I would like to insert my picture and image into my markdown post. I used the following as;

![TEST](/static/anonymouos-hoodie.jpeg)
![TEST2](../../../static/anonymous-hoodie.jpeg)

in the static directory of Hugo root.

and then I am executing hugo server -D. But I cannot the image on the web page. The web page indicates the wrong path.

Could you help me?

noweaver avatar May 15 '19 01:05 noweaver

I'm glad you liked this!

/static/ convert to the root directory of your blog, so if you write ![TEST](/anonymoous-hoodie.jpeg) you will see the image.

If you still have problems, You should ask in Hugo Discussion.

taikii avatar May 15 '19 15:05 taikii