summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
blob: 1eaed7e648ebdf9d0887a819b3db25ba0213ca4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
const commitSha =
	import.meta.env.CF_PAGES_COMMIT_SHA || import.meta.env.COMMIT_SHA;
const repositoryUrl = "https://github.com/getchoo/website";
---

<footer>
	{
		commitSha && (
			<p>
				Site version
				<a href={`${repositoryUrl}/commit/${commitSha}`}>
					{commitSha.substring(0, 7)}
				</a>
				.
			</p>
		)
	}
	<p>Content is All Rights Reserved.</p>
	<p>
		The <a href={repositoryUrl}>source code</a> is available under the <a
			href="https://spdx.org/licenses/MIT.html">MIT License</a
		>.
	</p>
</footer>