tangled
alpha
login
or
join now
hayden.moe
/
www
0
fork
atom
My landing page, written in Astro
hayden.moe
0
fork
atom
overview
issues
pulls
pipelines
feat: update to point at tangled for repo ref
hayden.moe
4 months ago
fd451ba7
1c71500c
verified
This commit was signed with the committer's
known signature
.
hayden.moe
SSH Key Fingerprint:
SHA256:egi2RxHATuWGOtHoLWJQb68bxJ+Jg/4m40QL5UFBWEI=
0/1
build-push.yaml
failed
40s
+2
-8
3 changed files
expand all
collapse all
unified
split
astro.config.mjs
env.d.ts
src
components
footer.astro
+1
-1
astro.config.mjs
···
5
5
6
6
// obtain Git commit hash
7
7
const hash = childProcess
8
8
-
.execSync("git rev-parse --short HEAD")
8
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
4
-
5
5
-
// use a default runtime configuration (advanced mode).
6
6
-
type Runtime = import("@astrojs/cloudflare").Runtime<Env>;
7
7
-
declare namespace App {
8
8
-
interface Locals extends Runtime {}
9
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
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
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>