Skip to content

k-funk/jekyll-if-file-exists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll If File Exists

Installation

Copy file_exists.rb into the /_plugins/ directory of your Jekyll project.

Usage

The plugin adds a new custom liquid tag, which can be used as follows:

{% iffileexists dir/{{ page.var }}/page.html %}
  {% include dir/{{ page.var }}/page.html %}
{% else %}
  {% include dir/default_page.html %}
{% endiffileexists %}

About

Jekyll Plugin to check: if a file exists + else

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages