Skip to content

Commit

Permalink
Remove unknown is_file_exists function
Browse files Browse the repository at this point in the history
  • Loading branch information
hsnaydd committed Oct 31, 2019
1 parent 0b933a7 commit 2c11350
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
</head>
<body id="kss-node" {% if template.isItem %}class="kss-fullscreen-mode"{% endif %}>

{% if is_file_exists("../../../styleguide/kss-assets/sprite.svg") %}
{% set sprite %}
{%- include '../../../styleguide/kss-assets/sprite.svg' ignore missing -%}
{% endset %}

{% if sprite is not empty %}
<div hidden>
{% include "../../../styleguide/kss-assets/sprite.svg" %}
{{ sprite }}
</div>
{% endif %}

Expand Down

0 comments on commit 2c11350

Please sign in to comment.