diff --git a/_layouts/base.html b/_layouts/base.html index d8bbc3b..383d8b3 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -1,5 +1,14 @@ --- --- +{% comment %} + If previewing locally, site.root is set in _config_dev.yml. + If site.root is not set, assume we're viewing on the web. +{% endcomment %} +{% if site.root %} + {% assign root = site.root %} +{% else %} + {% assign root = site.github.url %} +{% endif %}
@@ -7,10 +16,10 @@ - - - - + + + + {% if site.carpentry == "swc" %} {% endif %} @@ -29,7 +38,11 @@