Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions client/src/views/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,22 @@ export default ({ t, page }) =>
{ process.env.TERMS && <span><a href={ process.env.TERMS } target="_blank">Terms &amp; </a></span> }
{ process.env.PRIVACY && <span><a href={ process.env.PRIVACY } target="_blank">Privacy</a></span> }
</div>
<div>{ process.env.SITE_FOOTER || t`Powered by esplora` }</div>
{
(() => {
let raw = process.env.SITE_FOOTER || t`Powered by esplora`
const year = String(new Date().getFullYear())
// if a year already exists in the footer text, replace it with the current year
if (/\b\d{4}\b/.test(raw)) {
return raw.replace(/\b\d{4}\b/, year)
}
// if the footer text starts with ©, insert the current year right after it
if (raw.match(/^©/i)) {
return raw.replace(/^©\s*/i, `© ${year} `)
}
// otherwise, just stick the current year at the front
return `${year} ${raw}`
})()
}</div>
</div>
</div>
</div>
</footer>
2 changes: 1 addition & 1 deletion flavors/blockstream/config.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export SITE_DESC='Blockstream Explorer is an open source block explorer providing detailed blockchain data across Bitcoin, Testnet, and Liquid. Supports Tor and tracking-free.'
export SITE_FOOTER='© 2025 Blockstream Corporation Inc. All rights reserved.'
export SITE_FOOTER='© Blockstream Corporation Inc. All rights reserved.'
export HEAD_HTML=\
'<meta property="og:image" content="https://blockstream.info/img/social-sharing.png">'\
'<meta name="twitter:image" content="https://blockstream.info/img/social-sharing.png">'\
Expand Down