Only load slick on home_page

This commit is contained in:
Oleg Lavrovsky 2017-05-11 09:45:34 +02:00
parent 254cd68b35
commit 5b729dd018
2 changed files with 6 additions and 5 deletions

View file

@ -3,6 +3,11 @@
{% block body_class %}template-{{ self.get_verbose_name|slugify }}{% endblock %}
{% block extra_css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'libs/slick-carousel/slick/slick.scss' %}">
<link rel="stylesheet" type="text/x-scss" href="{% static 'libs/slick-carousel/slick/slick-theme.scss' %}">
{% endblock %}
{% block content %}
<!-- Banner (articles) -->

View file

@ -9,14 +9,10 @@
<meta name="description" content="{% block description %}{% endblock %}">
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static 'libs/slick-carousel/slick/slick.scss' %}">
<link rel="stylesheet" type="text/x-scss" href="{% static 'libs/slick-carousel/slick/slick-theme.scss' %}">
<link rel="stylesheet" type="text/x-scss" href="{% static 'css/main.scss' %}">
{% endcompress %}
{% block extra_css %}
{% endblock %}
{% block extra_css %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">