Skip to content

Commit

Permalink
Fallback to site.github.url for use in {{ base_path }} when `site.u…
Browse files Browse the repository at this point in the history
…rl` is nil
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent af2e666 commit 8004d3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/base_path
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 8004d3c

Please sign in to comment.