Skip to content

Commit 0e68e39

Browse files
authored
Add version to website metatags.
1 parent 0ea0c63 commit 0e68e39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/BaseHead.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ interface Props {
55
image?: string;
66
}
77
8+
const buildTimestamp = import.meta.env.TIMESTAMP;
9+
const gitVersion = import.meta.env.GIT_VERSION;
810
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
911
1012
const { title, description, image = "/social-card.png" } = Astro.props;
@@ -15,6 +17,8 @@ const { title, description, image = "/social-card.png" } = Astro.props;
1517
<meta name="viewport" content="width=device-width,initial-scale=1" />
1618
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
1719
<meta name="generator" content="Astro" />
20+
<meta name="build-version" content={gitVersion} />
21+
<meta name="build-timestamp" content={buildTimestamp} />
1822
<link rel="sitemap" href="/sitemap-index.xml" />
1923

2024
<meta name="referrer" content="no-referrer-when-downgrade" />

0 commit comments

Comments
 (0)