summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
blob: bf1235d4ce5ef39dd56845d37f8031f4023b1df3 (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
26
27
28
---
const commitSha =
	import.meta.env.CF_PAGES_COMMIT_SHA || import.meta.env.COMMIT_SHA;
const repositoryUrl = "https://github.com/getchoo/website";
---

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