From 2c113506975982b111518148f9f6bebfb552a125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Aydo=C4=9Fdu?= Date: Thu, 31 Oct 2019 16:01:54 +0300 Subject: [PATCH] Remove unknown `is_file_exists` function --- index.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.twig b/index.twig index 59fb676..a55dd0f 100644 --- a/index.twig +++ b/index.twig @@ -13,9 +13,13 @@ -{% 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 %} {% endif %}