screenshot & title

This commit is contained in:
Saahil dutta 2024-06-28 23:48:40 -04:00
parent e945704c46
commit bbc11c69c9
Signed by: neon
GPG key ID: 8A8B64515254CFC6
2 changed files with 5 additions and 4 deletions

View file

@ -16,7 +16,7 @@
<meta itemprop="name" content="Saahil" /> <meta itemprop="name" content="Saahil" />
<meta <meta
itemprop="image" itemprop="image"
content="./screenshot.png" content="screenshot.png"
/> />
<!-- Facebook Meta Tags --> <!-- Facebook Meta Tags -->
@ -25,7 +25,7 @@
<meta property="og:title" content="Saahil" /> <meta property="og:title" content="Saahil" />
<meta <meta
property="og:image" property="og:image"
content="./screenshot.png" content="screenshot.png"
/> />
<!-- Twitter Meta Tags --> <!-- Twitter Meta Tags -->
@ -37,7 +37,7 @@
/> />
<meta <meta
name="twitter:image" name="twitter:image"
content="./screenshot.png" content="screenshot.png"
/> />
<!-- <script async src="https://ackee.saahild.com/tracker.js" data-ackee-server="https://ackee.saahild.com" data-ackee-domain-id="c082bd15-f9d8-414f-aa10-926e1d66a5d6" data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'></script> --> <!-- <script async src="https://ackee.saahild.com/tracker.js" data-ackee-server="https://ackee.saahild.com" data-ackee-domain-id="c082bd15-f9d8-414f-aa10-926e1d66a5d6" data-ackee-opts='{ "ignoreOwnVisits": false, "detailed": true }'></script> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">

View file

@ -10,7 +10,8 @@ export function runTitle() {
} }
window.document.documentElement.className = "duration-500 ease-in-out " window.document.documentElement.className = "duration-500 ease-in-out "
if (document.hasFocus()) { if (document.hasFocus()) {
document.title = title0 || "Saahild.com"
document.title = title0?.toLowerCase() === "react app" ? "Saahild.com" : (title0 ?? "Saahild.com")
window.document.documentElement.style.filter = "" window.document.documentElement.style.filter = ""
} else { } else {
document.title = 'Come Back :(' document.title = 'Come Back :('