diff options
| author | Kevin Hoerr <kjhoerr@protonmail.com> | 2022-11-21 22:06:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-21 22:06:11 -0500 |
| commit | e001ae87ff1eee33f1d60ab6d6141d6e7214ab64 (patch) | |
| tree | 31629306fbfbce3ee86a11407ca3fcbb3bf0ea6f /src | |
| parent | 5eb011ca3378eb4e18592387178d4174fed2e0a8 (diff) | |
| download | submelon.dev-e001ae87ff1eee33f1d60ab6d6141d6e7214ab64.tar.gz submelon.dev-e001ae87ff1eee33f1d60ab6d6141d6e7214ab64.tar.bz2 submelon.dev-e001ae87ff1eee33f1d60ab6d6141d6e7214ab64.zip | |
Clean before build (#16)
* Move main.css to Layout component
* Add step to clean Gatsby before build
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Layout.tsx | 2 | ||||
| -rw-r--r-- | src/pages/404.tsx | 1 | ||||
| -rw-r--r-- | src/pages/index.tsx | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 6cc70ed..7be816f 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -4,6 +4,8 @@ import { Content, Footer } from "../styles"; import package_json from "../../package.json"; import { getTimestamp } from "../util/timestamp"; +import "../styles/main.css"; + const VERSION = package_json.version; const Layout = ({ children }) => { diff --git a/src/pages/404.tsx b/src/pages/404.tsx index d8d27cb..6288f0c 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,7 +1,6 @@ import React from "react"; import { BlockLink, Layout } from "../components"; import { BlockBody, BlockHeader } from "../styles"; -import "../styles/main.css"; const NotFoundPage = (): React.ReactElement => { return ( diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 370a10d..10ba281 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,6 +1,5 @@ import React from "react"; import { StaticImage } from "gatsby-plugin-image"; -import "../styles/main.css"; import { FaGithub, FaMastodon } from "react-icons/fa"; import { BlockLink, Layout } from "../components"; import { BlockBody, BlockHeader } from "../styles"; |
