Revert "Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages"
[rnaseq-cwl-training.git] / _includes / lesson_footer.html
index 9606a31e0cc013137cf3336742dab3e47971e342..b0eb29912ed1f9bf3df02ab2d7e7c97d700a4a3c 100644 (file)
@@ -1,9 +1,12 @@
 {% comment %}
   Footer for lesson pages.
 {% endcomment %}
+
+{% include gh_variables.html %}
+
 <footer>
   <div class="row">
-    <div class="col-md-6 copyright" align="left">
+    <div class="col-md-6 license" id="license-info" align="left">
        {% if site.carpentry == "swc" %}
        Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
        by <a href="{{ site.carpentries_site }}">The Carpentries</a>
     <div class="col-md-6 help-links" align="right">
        {% if page.source %}
        {% if page.source == "Rmd" %}
-       <a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Edit on GitHub</a>
+       <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Edit on GitHub</a>
        {% endif %}
        {% else %}
-       <a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Edit on GitHub</a>
+       <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path}}" data-checker-ignore>Edit on GitHub</a>
        {% endif %}
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
+       <a href="{{ repo_url }}/blob/{{ source_branch }}/CONTRIBUTING.md" data-checker-ignore>Contributing</a>
        /
-       <a href="{{ site.github.repository_url }}/">Source</a>
+       <a href="{{ repo_url }}/">Source</a>
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
+       <a href="{{ repo_url }}/blob/{{ source_branch }}/CITATION" data-checker-ignore>Cite</a>
        /
        <a href="mailto:{{ site.email }}">Contact</a>
     </div>