Overview
The Jekyll::GistLiquid tag is a tool that allows users to display GitHub Gists on their Jekyll sites. It provides a way to easily incorporate code snippets or examples into blog posts or tutorials.
Features
- Easy integration with Jekyll sites
- Ability to display GitHub Gists using Liquid tags
- Option to specify a specific file from the Gist to display
- Supports personal access tokens for faster site generation
Installation
To install the Jekyll::GistLiquid tag, follow these steps:
- Add the following line to your application’s Gemfile:
gem 'jekyll-gist'
- Execute the command to install the gem:
bundle install
- Alternatively, you can install the gem manually by running the command:
gem install jekyll-gist
- After installing the gem, add the following code to your site’s
_config.ymlfile:
plugins:
- jekyll-gist
Note: For Jekyll versions older than 3.5.0, use the gems key instead of plugins.
Summary
The Jekyll::GistLiquid tag is a useful tool for Jekyll users who want to display GitHub Gists on their sites. With easy installation and integration, as well as support for specifying specific files and personal access tokens, it provides a convenient way to showcase code examples and snippets in blog posts and tutorials.