Skip to content

See if file in _includes folder exists #1

@jp26jp

Description

@jp26jp

Can this be done? If so, how?

I tried:

{% iffileexists /_includes/file.js %}
  <h1>IT EXISTS</h1>
{% endiffileexists %}

and

{% iffileexists _includes/file.js %}
  <h1>IT EXISTS</h1>
{% endiffileexists %}

but it didn't work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions