aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pages
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2021-04-22 02:52:57 -0400
committerKevin J Hoerr <kjhoerr@protonmail.com>2021-04-22 02:52:57 -0400
commitc5f613990c2ec31b61c124aa18523d04768e107e (patch)
tree67d59fb5975873544d632806904ba89d2a7306ba /src/pages
parentffcc9ab0c0059a269f31ed3b6dd99b65546adcb0 (diff)
downloadsubmelon.dev-c5f613990c2ec31b61c124aa18523d04768e107e.tar.gz
submelon.dev-c5f613990c2ec31b61c124aa18523d04768e107e.tar.bz2
submelon.dev-c5f613990c2ec31b61c124aa18523d04768e107e.zip
Embed timestamp into build
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/index.tsx3
1 files changed, 2 insertions, 1 deletions
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 = () => {
</div>
</div>
- <div id="meta"><span>&copy;2021 kjhoerr@//submelon.tech/:{getTimestamp(parseInt(process.env.GATSBY_TIMESTAMP))}</span></div>
+ <div id="meta"><span>&copy;2021 kjhoerr@//submelon.tech/:{getTimestamp(parseInt(TIMESTAMP))}</span></div>
</StyledContainer>
</main>
);