Add support for baseurl
This commit is contained in:
+3
-1
@@ -1,3 +1,5 @@
|
||||
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
|
||||
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
@@ -19,7 +21,7 @@
|
||||
{% if page.image.feature contains 'http' %}
|
||||
"{{ page.image.feature }}"
|
||||
{% else %}
|
||||
"{{ site.url }}/images/{{ page.image.feature }}"
|
||||
"{{ page.image.feature | prepend: "/images/" | prepend: absurl }}"
|
||||
{% endif %}
|
||||
alt="{{ page.title }} feature image">
|
||||
{% if page.image.credit %}
|
||||
|
||||
Reference in New Issue
Block a user