This commit is contained in:
2024-09-16 16:29:32 -04:00
parent f358266533
commit 2cd25ad7bd
4 changed files with 580 additions and 553 deletions

View File

@@ -192,11 +192,14 @@ module.exports = {
if (url.p == -1) {
document.querySelector("title").innerHTML = `${url.p.toContent().toTitleCase()} | ${ document.querySelector("title").getAttribute("data-site") }`;
} else {
let theTitle = docuemnt.querySelector("article").getAttribute("data-name").toContent().toTitleCase();
if (docuemnt.querySelector("article").getAttribute("data-display") !== null) {
theTitle = docuemnt.querySelector("article").getAttribute("data-display")
let theTitle = document.querySelectorAll("article");
if (theTitle.length > 0) {
theTitle = theTitle[0].getAttribute("data-name").toContent().toTitleCase();
if (document.querySelector("article").getAttribute("data-display") !== null) {
theTitle = document.querySelector("article").getAttribute("data-display")
}
document.querySelector("title").innerHTML = `${theTitle} | ${ document.querySelector("title").getAttribute("data-site") }`
}
document.querySelector("title").innerHTML = `${theTitle} | ${ document.querySelector("title").getAttribute("data-site") }`
}
}