caching settings
This commit is contained in:
parent
b9fe93ed7a
commit
9ebe832fea
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue