From 3140267ea0a3b37032003992695afd7dc1f4f46c Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Sat, 23 Dec 2023 23:59:02 -0500 Subject: De gatsby (#326) * de-gatsby * Add inversed image for dark background * eleventy * Reinstate workflows to prior state * Strip inline styling for index image * Passthrough src/public/ files * Use global data to encode build date encoded string * Clean public directory before build * Reinstall eslint, prettier * Reinstate .gitattributes for public dir * build.yml: escape config file for version numbering * Revert public changes for PR validation * Rename src/public/ to src/static/ * Include github-actions in dependabot updates * re-establish typescript * Update prevent-file-change-action to v1.5.1 * Re-add typescript to linting * Re-add typescript for eslint * Fix whitespace diff for tsconfig.json * Fix whitespace in .eslintrc.json --- src/hooks/SiteVersion.ts | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/hooks/SiteVersion.ts (limited to 'src/hooks/SiteVersion.ts') diff --git a/src/hooks/SiteVersion.ts b/src/hooks/SiteVersion.ts deleted file mode 100644 index 6726a3c..0000000 --- a/src/hooks/SiteVersion.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { useStaticQuery, graphql } from "gatsby"; - -type SiteVersion = NonNullable< - NonNullable["siteMetadata"] ->["version"]; - -export const useSiteVersion = (): SiteVersion => { - const { site } = useStaticQuery(graphql` - query getSiteVersion { - site { - siteMetadata { - version - } - } - } - `); - - return site?.siteMetadata?.version ?? "0"; -}; -- cgit