Add docs/javascripts/footer-home-link.js
All checks were successful
Build and deploy docs / deploy (push) Successful in 2s

new file for footer links
This commit is contained in:
2026-08-30 22:02:01 +00:00
parent 8fe4211ded
commit d4a3d962a3

View File

@@ -0,0 +1,18 @@
// Add a visible text link to the main site next to the copyright line.
// The theme's extra.social icon already links to bitcoin-after.life, but
// as an icon-only button (title tooltip, no visible text) it's easy to
// miss — this makes the link readable as text too.
(function () {
function decorate() {
var highlight = document.querySelector('.md-copyright__highlight');
if (!highlight || highlight.querySelector('.footer-home-link')) return;
highlight.appendChild(document.createTextNode(' — '));
var link = document.createElement('a');
link.href = 'https://bitcoin-after.life';
link.className = 'footer-home-link';
link.textContent = 'bitcoin-after.life';
highlight.appendChild(link);
}
if (document.readyState !== 'loading') decorate();
else document.addEventListener('DOMContentLoaded', decorate);
})();