Sha256: b7e692230a602d06e0d1d61713ce9ced681adafcc409842fb9d63e65b18f3fcf

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

# Jekyll::Gist

Liquid tag for displaying GitHub Gists in Jekyll sites: `{% gist %}`.

[![Build Status](https://travis-ci.org/jekyll/jekyll-gist.svg?branch=master)](https://travis-ci.org/jekyll/jekyll-gist)

## Installation

Add this line to your application's Gemfile:

    gem 'jekyll-gist'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jekyll-gist

## Usage

Use the tag as follows in your Jekyll pages, posts and collections:

```liquid
{% gist parkr/c08ee0f2726fd0e3909d %}
```

This will create the associated script tag:

```html
<script src="https://gist.github.com/parkr/c08ee0f2726fd0e3909d.js"> </script>
```

You may optionally specify a `filename` after the `gist_id`:

```liquid
{% gist parkr/c08ee0f2726fd0e3909d test.md %}
```

This will produce the correct URL to show just the specified file in your post rather than the entire Gist.

## Contributing

1. Fork it ( https://github.com/jekyll/jekyll-gist/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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jekyll-gist-1.3.5 README.md
jekyll-gist-1.3.4 README.md
jekyll-gist-1.3.3 README.md
jekyll-gist-1.3.2 README.md
jekyll-gist-1.3.0 README.md
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/jekyll-gist-1.2.1/README.md
jekyll-gist-1.2.1 README.md
jekyll-gist-1.2.0 README.md
jekyll-gist-1.1.0 README.md