Fallback to site.github.url
for use in {{ base_path }} when site.url
is nil
This commit is contained in:
parent
ad001a435c
commit
ca9ff3248c
1 changed files with 5 additions and 1 deletions
|
@ -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 %}
|
Loading…
Reference in a new issue