In debug mode, use the normal CSS file instead of the minified one

When working with Sass, the watch mode does not build the minified CSS
file. Hence, it is useful to use the normal one in development (debug
mode activated) and keep the minified one for production only (debug
mode deactivated).
This commit is contained in:
Rodolphe Breard 2018-11-12 14:36:18 +01:00
parent 52eb58f2a9
commit 1d039d2aae

View file

@ -3,8 +3,13 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if debug %}
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.css' %}">
<link rel="stylesheet" href="{% static 'bulma/css/style.css' %}">
{% else %}
<link rel="stylesheet" href="{% static 'bulma/css/font-awesome.min.css' %}">
<link rel="stylesheet" href="{% static 'bulma/css/style.min.css' %}">
{% endif %}
<link rel="shortcut icon" href="{% static "khaganat/images/favicon.ico" %}">
<link rel="stylesheet" href="{% static "khaganat/css/khaganat.css" %}">
<script defer src="{% static "navbar/navbar.js" %}"></script>