From ca9ff3248ccd6fe4ed5aa4e8762fba0ad9d7fdaa Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 4 Aug 2016 10:47:39 -0400 Subject: [PATCH] Fallback to `site.github.url` for use in {{ base_path }} when `site.url` is nil --- _includes/base_path | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_includes/base_path b/_includes/base_path index 8c7dc62b..36826c4f 100644 --- a/_includes/base_path +++ b/_includes/base_path @@ -1 +1,5 @@ -{% capture base_path %}{{ site.url }}{{ site.baseurl }}{% endcapture %} \ No newline at end of file +{% if site.url %} + {% assign base_path = site.url | append: site.baseurl %} +{% else %} + {% assign base_path = site.github.url %} +{% endif %} \ No newline at end of file