Skip to content

A liquid tag to include a file from its path relate to Jekyll's source folder

Notifications You must be signed in to change notification settings

cyancdesign/jekyll-include-absolute-plugin

 
 

Repository files navigation

Jekyll include_absolute Tag

A liquid tag to include a file from its path relate to Jekyll's source folder. Why? Because Jekyll's built-in include tag does not support including files outside of _includes folder.

Syntax: {% include_absolute path %}

Installation

Copy include_absolute.rb into /_plugins

Examples

js/common.js

{% include_absolute js/jquery.js %}
{% include_absolute js/bootstrap.js %}

css/common.css

{% include_absolute css/bootstrap.css %}
{% include_absolute css/ionicons.css %}

License

MIT

About

A liquid tag to include a file from its path relate to Jekyll's source folder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%