Skip to content

Commit

Permalink
Merge pull request #30 from digitalearthafrica/open-ext-links-in-new-tab
Browse files Browse the repository at this point in the history
Open external links in a new tab
Closes #23
  • Loading branch information
Andrew Hicks committed Aug 25, 2020
2 parents e999865 + 12d9f30 commit e1d848b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "!layout.html" %}

{% block footer %}
<!-- Open other sites in a new window -->
<script>
jQuery(document).ready(function() {
jQuery("a[href^='http']").attr('target','_blank');
});
</script>
{% endblock %}

0 comments on commit e1d848b

Please sign in to comment.