diff options
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 |