Update index.md, mkdocs.yml, add javascripts for correct translate
All checks were successful
Build and deploy docs / deploy (push) Successful in 4s

This commit is contained in:
2026-07-30 13:12:02 +02:00
parent 3e36c31dc7
commit 5af5607fc7
3 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
// Keep the brand name "Bitcoin After Life" untranslated by Chrome / Google
// Translate, while the rest of the page still translates normally.
(function () {
function mark() {
document
.querySelectorAll('.md-header__topic .md-ellipsis, .bal-hero .name')
.forEach(function (el) {
el.setAttribute('translate', 'no');
el.classList.add('notranslate');
});
}
if (document.readyState !== 'loading') mark();
else document.addEventListener('DOMContentLoaded', mark);
})();