Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

A Liquid tag plugin for Jekyll that allows remote includes from external sources.

License

Notifications You must be signed in to change notification settings

netrics/jekyll-remote-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-remote-include

A Liquid tag plugin for Jekyll that allows remote includes from external sources.

Installation

Add this line to your application's Gemfile:

group :jekyll_plugins do
    gem 'jekyll-remote-include', :github => 'netrics/jekyll-remote-include'
end

And then execute:

$ bundle

Or install it yourself as:

$ gem install jekyll-remote-include

Then add the following to your site's _config.yml:

plugins:
  - jekyll-remote-include

💡 If you are using a Jekyll version less than 3.5.0, use the gems key instead of plugins.

Usage

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

{% remote_include https://raw.githubusercontent.com/jekyll/jekyll/master/README.markdown %}

or use with a liquid variable (eg. link from front matter):

{% if page.my_variable %}
  {% remote_include {{ page.my_variable }} %}
{% endif %}

Contributing

  1. Fork it.
  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

About

A Liquid tag plugin for Jekyll that allows remote includes from external sources.

Topics

Resources

License

Stars

Watchers

Forks

Languages