Load custom.css only if exists

This commit is contained in:
Simounet
2020-01-29 22:26:00 +01:00
parent 62107f50d3
commit 33e3eeaec8
5 changed files with 18 additions and 10 deletions

View File

@ -44,7 +44,9 @@
{% block css %}
{% endblock %}
<link rel="stylesheet" href="{{ asset('custom.css') }}">
{% if asset_file_exists('custom.css') %}
<link rel="stylesheet" href="{{ asset('custom.css') }}">
{% endif %}
{% block scripts %}
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>