From 55049008e2a93ace48cfd425bd63eedfc52c935b Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Thu, 5 May 2016 00:00:49 +0300 Subject: [PATCH] Use webassets if enabled --- templates/base.html | 9 +++++++-- templates/partial/assets.html | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 templates/partial/assets.html diff --git a/templates/base.html b/templates/base.html index fe3b8a3..8b2d21f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,6 +3,7 @@ + {% set PYGMENTS_CSS %}pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css{% endset %} {% if USE_LESS %} @@ -10,11 +11,15 @@ {% endif %} - + {% if CUSTOM_CSS %} - + {% if 'assets' in PLUGINS %} + {% include 'partial/assets.html' %} + {% else %} + + {% endif %} {% endif %} {% if FEED_ALL_ATOM %} diff --git a/templates/partial/assets.html b/templates/partial/assets.html new file mode 100644 index 0000000..c9585d8 --- /dev/null +++ b/templates/partial/assets.html @@ -0,0 +1,3 @@ +{% assets CUSTOM_CSS, filters="cssmin", output="custom.min.css" %} + +{% endassets %}