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

This commit is contained in:
Michael Rose 2016-08-04 10:47:39 -04:00
parent ad001a435c
commit ca9ff3248c

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 %}