caching settings

This commit is contained in:
Niklas rust 2019-10-23 11:35:48 +02:00
parent b9fe93ed7a
commit 9ebe832fea
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,8 @@
<!-- Your stuff: Third-party CSS libraries go here -->
{% load cache %}
{% cache css %}
{% compress css %}
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
<!-- This file stores project-specific CSS -->
@ -31,6 +33,7 @@
<link type="text/x-scss" href="{% static 'sass/project.scss' %}" rel="stylesheet">
{% endcompress %}
{% endcache %}
{% endblock %}
</head>

View file

@ -3,10 +3,13 @@
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
{% load cache %}
{% cache css %}
{% compress css %}
<link type="text/x-scss" href="{% static 'sass/render.scss' %}" rel="stylesheet">
<link href="{% static 'css/pygmentize.css' %}" rel="stylesheet">
{% endcompress %}
{% endcache %}
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
</head>