From: Greg Wilson Date: Sun, 26 Jun 2016 22:54:18 +0000 (-0400) Subject: Styling workshops correctly. X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/e0f4c7a8e180a63dcb3ee60e755ff3beaeccd461 Styling workshops correctly. 1. Use site.root for root path if set, otherwise use site.github.url. 2. Display extra files for workshop-template repo as well as for lessons. --- diff --git a/_includes/javascript.html b/_includes/javascript.html index c8c66c0..95d49f0 100644 --- a/_includes/javascript.html +++ b/_includes/javascript.html @@ -1,3 +1,12 @@ - - - +{% 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 %} + + + diff --git a/_includes/navbar.html b/_includes/navbar.html index 7da51db..ff15ed1 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -1,3 +1,12 @@ +{% 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 %}