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

@@ -1,11 +1,11 @@
<div class="bal-hero">
<img class="logo-light no-lightbox" src="assets/logo-mark-black.svg" alt="Bitcoin After Life">
<img class="logo-dark no-lightbox" src="assets/logo-mark-white.svg" alt="Bitcoin After Life">
<span class="name">Bitcoin After Life</span>
<span class="name" translate="no">Bitcoin After Life</span>
<span class="tagline">BAL Protocol — decentralized Bitcoin inheritance</span>
</div>
# Bitcoin After Life
# Bitcoin After Life {: translate="no" }
**Bitcoin After Life (BAL)** is an open-source plugin for [Electrum](https://electrum.org) that makes **decentralized Bitcoin inheritance** possible: no notary, no lawyer, no custodian.

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);
})();

View File

@@ -39,6 +39,9 @@ extra_css:
# whenever you change extra.css and the browser keeps showing the old style.
- stylesheets/extra.css?v=14
extra_javascript:
- javascripts/brand-notranslate.js # keep "Bitcoin After Life" untranslated in Chrome
nav:
- Home: index.md
- FAQ: faq.md