I am trying to follow the Jekyll docs and am stuck on how to display an image
--- layout: post title: "My first post!" date: 2016-10-20 16:17:57 +0200 categories: jekyll update regenerate: true --- This is in the `_posts` directory. It can be edited then rebuild the site to see the changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. ![name of the image][{{site.url}}/assets/P6740674.JPG]
I feel very silly asking this question as it is so basic but I can not find any answers to my question
Is it possibly a configuration error on my own system. I am using apache2, ruby gems, etc
Thanks in advance
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With