A nice image tag for Jekyll sites.
Add this gem to your site's Gemfile in the :jekyll_plugins
group:
group :jekyll_plugins do
gem 'octopress-image-tag'
end
Then install the gem with Bundler
$ bundle
$ gem install octopress-image-tag
Then add the gem to your Jekyll configuration.
gems:
-octopress-image-tag
{% img [class names] url [width [height]] "[alt text]" [title:""] %}
Examples:
{% img /images/ninja.png "Ninja Attack!" %}
{% img left half http://site.com/images/ninja.png title:"Hidden Ninja" %}
{% img {{ site.cdn }}/images/ninja.png 150px 150px %}
Output:
<img src="/images/ninja.png" alt="Ninja Attack!" >
<img class="left half" src="http://site.com/images/ninja.png" alt="Hidden Ninja" title="Hidden Ninja" >
<img src="http://some.cdn.io/images/ninja.png" width="150px" height="150px" alt="Ninja in the shadows" title="Hidden Ninja">
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)