My landing page, written in Astro hayden.moe
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: commit info in footer at build time

+9 -1
+9 -1
src/components/footer.astro
··· 1 1 --- 2 + import childProcess from "child_process"; 3 + 2 4 const today = new Date(); 5 + 6 + // obtain Git commit hash 7 + const hash = childProcess 8 + .execSync("git rev-parse --short HEAD") 9 + .toString() 10 + .trim(); 3 11 --- 4 12 <p class="text-base03 px-4 py-2"> 5 - Copyright (c) Hayden Young {today.getFullYear()}. 13 + Copyright (c) Hayden Young {today.getFullYear()}. Version <a target="_blank" href={`https://github.com/hbjydev/hayden.moe/commit/${hash}`} class="decoration-wavy underline hover:text-pink transition-color duration-200">{hash}</a>. 6 14 </p>