# Octopress Quote Tag Easy HTML5 blockquotes for Jekyll sites. [![Build Status](https://travis-ci.org/octopress/quote-tag.svg)](https://travis-ci.org/octopress/quote-tag) [![Gem Version](http://img.shields.io/gem/v/octopress-quote-tag.svg)](https://rubygems.org/gems/octopress-quote-tag) [![License](http://img.shields.io/:license-mit-blue.svg)](http://octopress.mit-license.org) ## Installation ### Using Bundler Add this gem to your site's Gemfile in the `:jekyll_plugins` group: group :jekyll_plugins do gem 'octopress-quote-tag' end Then install the gem with Bundler $ bundle ### Manual Installation $ gem install octopress-quote-tag Then add the gem to your Jekyll configuration. gems: -octopress-quote-tag ## Usage ``` {% quote [options] %} Some great quote {% endquote %} ``` Options: | option | default | description | |:-------|:--------|:------------| | author | nil | String: Quote author | | title | nil | String: Title of work cited | | url | nil | String: Link to work | ### Example ``` {% quote author:"Bob McAwesome" url:http://example.com title:"Great Wisdom" %} Never pet a burning dog. {% endquote %} ``` ```

Some great quote

Bob McAwesome Great Wisdom
``` ## Why? In Markdown Blockquotes are simple but attribution isn't. Also, writing the semantic HTML is tricky and easy to forget. ``` > Some cool quote # becomes:

Some cool quote

``` But what if you want to cite an author or a source? ``` > Some cool quote > - Bob McAwesome # becomes:

Some cool quote - Bob McAwesome

``` Which doesn't work at all since a browser will see it as: ``` Some cool quote - Bob McAwesome ``` And now you know. ## Contributing 1. Fork it ( https://github.com/octopress/quote-tag/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request