Switching to site.root and site.repo
[rnaseq-cwl-training.git] / _includes / lesson_footer.html
similarity index 50%
rename from _includes/footer.html
rename to _includes/lesson_footer.html
index d9d90ed72717a519702b2a59d7ab64f5ba5cdb10..4c175a6203f06c81821a707f839109e5131acab8 100644 (file)
@@ -1,12 +1,3 @@
-{% comment %}
-  Generic footer.  Links to repository, not to generated website, so
-  we do a bit of a dance to get the right URL.
-{% endcomment %}
-{% if site.is_production %}
-  {% capture repo_url %}{{ site.github.repository_url }}{% endcapture %}
-{% else %}
-  {% capture repo_url %}https://github.com/{{ site.account }}/{{ site.project }}{% endcapture %}
-{% endif %}
 <hr/>
 <footer>
   <div class="row">
@@ -19,9 +10,9 @@
     </div>
     <div class="col-md-6" align="right">
       <h4>
-       <a href="{{ repo_url }}">Source</a>
+       <a href="{{ site.repo }}/">Source</a>
        /
-       <a href="{{ repo_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
+       <a href="{{ site.repo }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
        /
        <a href="mailto:{{ site.email }}">Contact</a>
       </h4>