Skip to content

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

License

Notifications You must be signed in to change notification settings

tnhu/jekyll-include-absolute-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll include_absolute Tag

A Jekyll's liquid tag plugin to include a file from its path relative 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

With this plugin you can include only a file.

{% include_absolute '../../folder/outside/jekyll/foo.html' %}
{% include_absolute 'other/folder/bar.js' %}

Or include the file and pass parameters to it.

{% include_absolute '../../folder/outside/jekyll/foo.html' param1='yes' param2='green' %}

License

MIT

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages