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

This commit is contained in:
Michael Rose
2016-08-08 16:16:53 -04:00
parent 4ac885a515
commit 9c63cabe7e
+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 %}