You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
In my tinkerings, I've found it useful to know if a file exists. For example, if there's an "avatar_400x400.png" use it, otherwise use "avatar_200x200.png".
Example usage:
{% include JB/file_exists file="/404.html" %}
{% if file_exists_result %}Found "/404.html"!{% else %}Did not find "/404.html".{% endif %}
{% assign filename = "/405.html" %}
{% include JB/file_exists file=filename %}
{% if file_exists_result %}Found "{{ filename }}"!{% else %}Did not find "{{ filename }}".{% endif %}
Comments? Thoughts?
The text was updated successfully, but these errors were encountered:
In my tinkerings, I've found it useful to know if a file exists. For example, if there's an "avatar_400x400.png" use it, otherwise use "avatar_200x200.png".
Example usage:
Comments? Thoughts?
The text was updated successfully, but these errors were encountered: