diff --git a/content/header/_index.md b/content/header/_index.md index a0da849..3e043f5 100644 --- a/content/header/_index.md +++ b/content/header/_index.md @@ -42,5 +42,4 @@ extra: {% end %} -- [Knowledge]("https://ourworldventures.github.io/info_ourworld/intro/intro.html") -- [Contact]("mailto:info@ourworld.tf") \ No newline at end of file +- [Knowledge]("https://ourworldventures.github.io/info_ourworld/intro/intro.html") \ No newline at end of file diff --git a/static/js/custom.js b/static/js/custom.js index 4871c33..1af8ac1 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -114,10 +114,24 @@ window.onload = function () { }); }) + var links = document.links; + var internal_hosts = [ + 'www.ourworld.tf', + 'ourworld.tf', + 'www2.ourworld.tf', + 'localhost', + '127.0.0.1' + ] + for (var i = 0, linksLength = links.length; i < linksLength; i++) { + if (!internal_hosts.includes(links[i].hostname)) { + links[i].target = '_blank'; + } + } + document.getElementById("filter-btn").addEventListener('click', toggleFilter); document.getElementById("mobile-learn-btn").addEventListener('click', toggleMenu); } function openInNewTab(url) { window.open(url, '_blank').focus() -} \ No newline at end of file +} diff --git a/templates/_default/base.html b/templates/_default/base.html index a609dd3..b486a15 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -1,14 +1,15 @@ +{% include "partials/head.html" %} + +
+ + {% include "partials/header.html" %} +