add data-checker-ignore attributes to footer links
[rnaseq-cwl-training.git] / _includes / lesson_footer.html
index 9606a31e0cc013137cf3336742dab3e47971e342..03091a7cd20e0234307a5a36108c18e288a46be3 100644 (file)
@@ -1,6 +1,9 @@
 {% 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 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>