blog title be whatever the hostname is

This commit is contained in:
len0rd 2025-05-28 11:56:50 -04:00
parent 15dba0bd4f
commit 9866c31476
2 changed files with 12 additions and 0 deletions

8
_static/update_title.js Normal file
View file

@ -0,0 +1,8 @@
// update the title at the top of the document to match the hostname
// used to request the blog
document.addEventListener("DOMContentLoaded", function () {
var logoTitle = document.querySelector(".logo__title");
if (logoTitle) {
logoTitle.textContent = window.location.hostname;
}
});

View file

@ -49,6 +49,10 @@ html_css_files = [
"customizations.css",
]
html_js_files = [
"update_title.js",
]
html_sidebars = {
"*": [
"ablog/recentposts.html",