mirror of
https://github.com/len0rd/personal-website.git
synced 2025-09-07 06:37:48 -04:00
blog title be whatever the hostname is
This commit is contained in:
parent
15dba0bd4f
commit
9866c31476
2 changed files with 12 additions and 0 deletions
8
_static/update_title.js
Normal file
8
_static/update_title.js
Normal 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;
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue