Fallback to site.github.url for use in {{ base_path }} when site.url is nil

This commit is contained in:
Michael Rose committed 2016-08-08 16:16:53 -04:00
1 parent 4ac885a515
commit 9c63cabe7e
1 file changed
+5 -1
+5 -1
View File
@@ -1 +1,5 @@
{% capture base_path %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
{% if site.url %}
{% assign base_path = site.url | append: site.baseurl %}
{% else %}
{% assign base_path = site.github.url %}
{% endif %}