diff --git a/_includes/JB/file_exists b/_includes/JB/file_exists new file mode 100644 index 0000000..f40080f --- /dev/null +++ b/_includes/JB/file_exists @@ -0,0 +1,26 @@ +{% comment %}{% endcomment %} + +{% assign file_exists_result = false %} + +{% if include.file %} + {% for static_file in site.static_files %} + {% if static_file.path == include.file %} + {% assign file_exists_result = true %} + {% break %} + {% endif %} + {% endfor %} +{% endif %}