aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/common/header.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_includes/common/header.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/_includes/common/header.html b/_includes/common/header.html
index 464e42a..f905e37 100644
--- a/_includes/common/header.html
+++ b/_includes/common/header.html
@@ -23,7 +23,13 @@
{% if page.custom_css %}
{% for css in page.custom_css %}
- <link rel="stylesheet" href="{{ '/assets/css/' | relative_url }}{{ css }}">
+ {% assign abs_check = css | downcase | split: '//' %}
+ {% if abs_check[0] == 'http:' or abs_check[0] == 'https:' or abs_check[0] == blank %}
+ {% assign url = css %}
+ {% else %}
+ {% assign url = '/assets/css/' | relative_url | append: css %}
+ {% endif %}
+ <link rel="stylesheet" href="{{ url }}">
{% endfor %}
{% endif %}
</head>