From c5f613990c2ec31b61c124aa18523d04768e107e Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 22 Apr 2021 02:52:57 -0400 Subject: Embed timestamp into build --- src/pages/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 884f829..30adaf8 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -4,6 +4,7 @@ import { StaticImage } from "gatsby-plugin-image"; import SEO from "../components/SEO"; import "../styles/main.css"; +const TIMESTAMP = "1619067584"; const SHORT_CHARS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; function toShort (valu: number): string { @@ -140,7 +141,7 @@ const IndexPage = () => { -
©2021 kjhoerr@//submelon.tech/:{getTimestamp(parseInt(process.env.GATSBY_TIMESTAMP))}
+
©2021 kjhoerr@//submelon.tech/:{getTimestamp(parseInt(TIMESTAMP))}
); -- cgit