My landing page, written in Astro hayden.moe

feat: update to point at tangled for repo ref

hayden.moe fd451ba7 1c71500c

verified
+2 -8
+1 -1
astro.config.mjs
··· 5 5 6 6 // obtain Git commit hash 7 7 const hash = childProcess 8 - .execSync("git rev-parse --short HEAD") 8 + .execSync("git rev-parse HEAD") 9 9 .toString() 10 10 .trim(); 11 11
-6
env.d.ts
··· 1 1 /// <reference types="astro/client" /> 2 2 3 3 declare var __GIT_HASH__: string; 4 - 5 - // use a default runtime configuration (advanced mode). 6 - type Runtime = import("@astrojs/cloudflare").Runtime<Env>; 7 - declare namespace App { 8 - interface Locals extends Runtime {} 9 - }
+1 -1
src/components/footer.astro
··· 3 3 const hash = __GIT_HASH__; 4 4 --- 5 5 <p class="text-base03 px-4 py-2"> 6 - 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 + Copyright (c) Hayden Young {today.getFullYear()}. Version <a target="_blank" href={`https://tangled.org/hayden.moe/www/commit/${hash}`} class="decoration-wavy underline hover:text-pink transition-color duration-200">{hash.substring(0, 6)}</a>. 7 7 </p>