Skip to content

Commit

Permalink
Replaced javascript in footer.html for a solution using Jekyll.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommyhudon authored and smellems committed Oct 4, 2019
1 parent c438500 commit 8f41a12
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions _includes/footer.html
Expand Up @@ -5,7 +5,7 @@
<div class="row">
<div class="btn-group btn-group-lg col-md-9 col-lg-8 col-sm-9">
<a href="https://github.com/canada-ca/ore-ero/issues" class="btn btn-default" role="button">{{ site.data.i18n.general.footer.reportProblem[page.lang]}}</a>
<a href="https://github.com/canada-ca/ore-ero/tree/master/_pages/" onClick="location.href=this.href + fullPath;return false;" class="btn btn-default" role="button"> {{ site.data.i18n.general.footer.sourceCode[page.lang]}} </a>
<a href="https://github.com/canada-ca/ore-ero/tree/master/{{page.path}}" class="btn btn-default" role="button"> {{ site.data.i18n.general.footer.sourceCode[page.lang]}} </a>
</div>
<div class="wb-share col-md-3 col-sm-3 col-lg-offset-1" data-wb-share='{"lnkClass": "btn btn-default btn-block"}'></div>
</div>
Expand Down Expand Up @@ -83,10 +83,3 @@ <h2 class="wb-inv">{{ site.data.i18n.general.footer.AboutSite[page.lang] }}</h2>
const USERNAME = "{{ site.github_username }}";
const PRBOT_URL = "{{ site.prbot_url }}";
</script>
<script language="JavaScript" type="text/javascript">
let parser = document.createElement('a');
parser.href = window.location.href;
let pathPage = parser.href.split("/").slice(-1)[0];
let pathLang = parser.href.split("/").slice(-2)[0];
let fullPath = pathLang + '/' + pathPage;
</script>

0 comments on commit 8f41a12

Please sign in to comment.