From: Greg Wilson Date: Sun, 26 Jun 2016 23:14:01 +0000 (-0400) Subject: Making pages work for workshops as well as lessons X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/de59b96f5dd9d7ded6cff97ce4a11146626c884d Making pages work for workshops as well as lessons --- 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 @@
{% include navbar.html %} {{ content }} + {% if site.kind == "workshop" %} + {% include workshop_footer.html %} + {% else %} {% include lesson_footer.html %} + {% endif %}
{% include javascript.html %}