Use webassets if enabled
This commit is contained in:
parent
b72e9e5536
commit
55049008e2
2 changed files with 10 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
|
||||
|
||||
{% set PYGMENTS_CSS %}pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css{% endset %}
|
||||
{% if USE_LESS %}
|
||||
<link rel="stylesheet/less" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.less">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
|
||||
|
@ -10,12 +11,16 @@
|
|||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/stylesheet/style.min.css">
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/pygments/{{ PYGMENTS_STYLE|default('github') }}.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/{{ PYGMENTS_CSS }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/font-awesome/css/font-awesome.min.css">
|
||||
|
||||
{% if CUSTOM_CSS %}
|
||||
{% if 'assets' in PLUGINS %}
|
||||
{% include 'partial/assets.html' %}
|
||||
{% else %}
|
||||
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if FEED_ALL_ATOM %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom">
|
||||
|
|
3
templates/partial/assets.html
Normal file
3
templates/partial/assets.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% assets CUSTOM_CSS, filters="cssmin", output="custom.min.css" %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ SITEURL }}/{{ ASSET_URL }}">
|
||||
{% endassets %}
|
Loading…
Reference in a new issue