diff options
author | Indrajith K L | 2022-11-22 23:54:12 +0530 |
---|---|---|
committer | Indrajith K L | 2022-11-22 23:56:10 +0530 |
commit | ee38292e12f2d002f94036e3d54d2efcf40c715c (patch) | |
tree | e7000b79438630dce14988afe1444c20151ec7db /src | |
parent | 3ee4b8e6fd37c7b73992deeb01b9f43e745269f5 (diff) | |
download | indrajith-dev-ee38292e12f2d002f94036e3d54d2efcf40c715c.tar.gz indrajith-dev-ee38292e12f2d002f94036e3d54d2efcf40c715c.tar.bz2 indrajith-dev-ee38292e12f2d002f94036e3d54d2efcf40c715c.zip |
Adds neocities link
Remove Carbon Badge on neocities
Diffstat (limited to 'src')
-rw-r--r-- | src/_includes/partials/footer.njk | 9 | ||||
-rw-r--r-- | src/contact.njk | 17 |
2 files changed, 24 insertions, 2 deletions
diff --git a/src/_includes/partials/footer.njk b/src/_includes/partials/footer.njk index 6a11145..54fd287 100644 --- a/src/_includes/partials/footer.njk +++ b/src/_includes/partials/footer.njk @@ -5,4 +5,11 @@ </li> </ul> <div id="wcb" class="carbonbadge wcb-d"></div> -</footer>
\ No newline at end of file +</footer> + +<script> + const carbonBadge = document.getElementById("wcb"); + if(location.host.includes("neocities")) { + carbonBadge.remove(); + } +</script>
\ No newline at end of file diff --git a/src/contact.njk b/src/contact.njk index 666f55f..f1ac0e1 100644 --- a/src/contact.njk +++ b/src/contact.njk @@ -7,4 +7,19 @@ title: Contact <li> Email: indrajith @ indrajith.dev </li> -</ul>
\ No newline at end of file + <li id="origin-website"> + (🌐) <a href="https://indrajith.dev">https://indrajith.dev</a> + </li> +</ul> +<style> + #origin-website { + display:none; + } +</style> + +<script> +const websiteLink = document.getElementById("origin-website"); +if (location.host.includes("neocities")) { + websiteLink.style.display = "block"; +} +</script>
\ No newline at end of file |