fix: gist & git in the bio
This commit is contained in:
parent
daa99fd9cd
commit
cefde24774
1 changed files with 19 additions and 6 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
---
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<span>ʕ •ᴥ•ʔ</span>
|
<span>ʕ •ᴥ•ʔ</span>
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a target="_blank" href="https://barrettruth.com/git.html">git</a>
|
<a id="gist-link" target="_blank">gist</a>
|
||||||
<a target="_blank" href="https://www.linkedin.com/in/barrett-ruth/"
|
<a id="git-link" target="_blank">git</a>
|
||||||
|
<a
|
||||||
|
target="_blank"
|
||||||
|
href="https://www.linkedin.com/in/barrett-ruth/"
|
||||||
>linkedin</a
|
>linkedin</a
|
||||||
>
|
>
|
||||||
<a target="_blank" href="mailto:br.barrettruth@gmail.com">email</a>
|
<a target="_blank" href="mailto:br.barrettruth@gmail.com">email</a>
|
||||||
|
|
@ -27,3 +26,17 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const host = window.location.hostname;
|
||||||
|
const gitLink = document.getElementById("git-link");
|
||||||
|
const gistLink = document.getElementById("gist-link");
|
||||||
|
|
||||||
|
if (host.includes("localhost") || host.includes("127.0.0.1")) {
|
||||||
|
gistLink.href = "http://localhost:4321/gist.html";
|
||||||
|
gitLink.href = "http://localhost:4321/git.html";
|
||||||
|
} else {
|
||||||
|
gistLink.href = "https://barrettruth.com/gist.html";
|
||||||
|
gitLink.href = "https://barrettruth.com/git.html";
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue