title: Insert local image into a blog post with octopress
body: <p>I setuped an octopress blog for my github and now I want to add new posts. I need to add images to my posts, which I tried doing like so:</p>
  
  <pre><code>{% img /images/image.png 'alt' %}
  </code></pre>
  
  <p>This will only work on the root url of the app. When I view the blog post alone, the url looks like <a href="http://example.com/blog/2013/06/11/title/" rel="noreferrer">http://example.com/blog/2013/06/11/title/</a> so the url /images/ won't work.</p>
  
  <p>I then tried this:</p>
  
  <pre><code> {% img {{root_url}} /images/image.png 'alt' %}
  </code></pre>
  
  <p>And it won't work either. But a link like this:</p>
  
  <pre><code>[Link!]({{ root_url }} /images/image.png")
  </code></pre>
  
  <p>works perfectly. </p>
  
  <p>I would like a bit of help, Thanks a lot. </p>