From 4b54ae590a43613cdfc75edf2c07f9b7e48a00e8 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Mon, 20 Feb 2023 16:56:44 -0500 Subject: [PATCH] fix twitter card --- .gitignore | 3 +++ remix.config.js | 1 - {static => src/images}/twitter-card.png | Bin src/root.tsx | 11 +++++------ 4 files changed, 8 insertions(+), 7 deletions(-) rename {static => src/images}/twitter-card.png (100%) diff --git a/.gitignore b/.gitignore index 34d7dcc7..c1df6902 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,6 @@ haters/ .idea/ .history/ + +# Local Netlify folder +.netlify diff --git a/remix.config.js b/remix.config.js index 7c1d632c..2063012d 100644 --- a/remix.config.js +++ b/remix.config.js @@ -1,5 +1,4 @@ /** @type {import('@remix-run/dev').AppConfig} */ -const postcssNesting = require("postcss-nesting"); module.exports = { appDirectory: "src", future: { diff --git a/static/twitter-card.png b/src/images/twitter-card.png similarity index 100% rename from static/twitter-card.png rename to src/images/twitter-card.png diff --git a/src/root.tsx b/src/root.tsx index c65d2e57..047d2a82 100644 --- a/src/root.tsx +++ b/src/root.tsx @@ -1,16 +1,15 @@ -import type { LinksFunction, LoaderArgs, MetaFunction } from '@remix-run/node'; -import { json } from '@remix-run/node'; +import type { LinksFunction, MetaFunction } from '@remix-run/node'; import { Links, LiveReload, Meta, Outlet, - Scripts, - ScrollRestoration, + Scripts } from '@remix-run/react'; -import Layout from './components/layout' +import Layout from './components/layout'; import styles from './styles.css'; import { countries, devices, tags } from './util/stats'; +import twitterCard from './images/twitter-card.png'; export const links: LinksFunction = () => [ { rel: 'stylesheet', href: styles }, @@ -49,7 +48,7 @@ export default function App() { - +