Skip to content

Commit

Permalink
don't auto link
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdakos1 committed Jan 11, 2020
1 parent dabf1c2 commit 8f63a0c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,8 @@
{{ content }}

<script>
[].slice.call(document.getElementsByTagName('a')).forEach(function(elem) {
elem.addEventListener('click', function(e) {
if (location.host !== this.host) {
e.preventDefault()
var newTab = window.open()
newTab.opener = null
newTab.location = this.href
return false
}
})
})
</script>

</script>
</body>

</html>

0 comments on commit 8f63a0c

Please sign in to comment.