mirror of
https://github.com/len0rd/personal-website.git
synced 2025-09-02 04:13:55 -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;
|
||||
}
|
||||
});
|
4
conf.py
4
conf.py
|
@ -49,6 +49,10 @@ html_css_files = [
|
|||
"customizations.css",
|
||||
]
|
||||
|
||||
html_js_files = [
|
||||
"update_title.js",
|
||||
]
|
||||
|
||||
html_sidebars = {
|
||||
"*": [
|
||||
"ablog/recentposts.html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue