Skip to content

Commit ca9ff32

Browse files
committed
Fallback to site.github.url for use in {{ base_path }} when site.url is nil
1 parent ad001a4 commit ca9ff32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_includes/base_path

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
{% capture base_path %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
1+
{% if site.url %}
2+
{% assign base_path = site.url | append: site.baseurl %}
3+
{% else %}
4+
{% assign base_path = site.github.url %}
5+
{% endif %}

0 commit comments

Comments
 (0)