fix twitter card

This commit is contained in:
Wes Bos 2023-02-20 16:56:44 -05:00
parent c22ab6e2ee
commit 4b54ae590a
4 changed files with 8 additions and 7 deletions

3
.gitignore vendored
View file

@ -78,3 +78,6 @@ haters/
.idea/
.history/
# Local Netlify folder
.netlify

View file

@ -1,5 +1,4 @@
/** @type {import('@remix-run/dev').AppConfig} */
const postcssNesting = require("postcss-nesting");
module.exports = {
appDirectory: "src",
future: {

View file

Before

Width:  |  Height:  |  Size: 708 KiB

After

Width:  |  Height:  |  Size: 708 KiB

View file

@ -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() {
<meta name="twitter:creator" content="@wesbos" />
<meta name="twitter:title" content={metaData.title} />
<meta name="twitter:description" content={metaData.description} />
<meta name="twitter:image" content={`${metaData.siteUrl}/twitter-card.png`} />
<meta name="twitter:image" content={twitterCard} />
<Links />
</head>
<body>