Jekyll how to display an image in a post

If you want to use site.url, you have to add a url variable to your _config.yml file. More info in the Jekyll documentation.

But you might not have to use site.url at all. Any urls that start with a / slash will be relative to the top level of your domain. So you could do this:

![image tooltip here](/assets/image.jpg)

Leave a Comment