Skip to content

Commit 14469cb

Browse files
feat: Add Free Tools link to navigation and ensure it opens in a new tab
1 parent 29cd8a4 commit 14469cb

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

docs/javascripts/xfile.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@ for (var i = 0; i < enumBody.length; i++) {
55
var enumNavi = document.getElementsByClassName("md-nav__link")
66
for (var i = 0; i < enumNavi.length; i++) {
77
enumNavi[i].innerHTML = enumNavi[i].innerHTML.replace("1.", "");
8-
}
8+
}
9+
10+
// Make Free Tools link open in a new tab
11+
document.addEventListener('DOMContentLoaded', function() {
12+
var links = document.querySelectorAll('a[href="https://singhsidhukuldeep.github.io/Free-Tools/"]');
13+
links.forEach(function(link) {
14+
link.setAttribute('target', '_blank');
15+
link.setAttribute('rel', 'noopener noreferrer');
16+
});
17+
});

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ nav:
270270

271271
# - 📳 Projects: projects.md
272272

273+
- 🛠️ Free Tools: https://singhsidhukuldeep.github.io/Free-Tools/
274+
273275
- 🤝 Contribute: Contribute.md
274276

275277
# - <small>Privacy Policy</small>: privacy.md

0 commit comments

Comments
 (0)