mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
fix twitter card
This commit is contained in:
parent
c22ab6e2ee
commit
4b54ae590a
4 changed files with 8 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -78,3 +78,6 @@ haters/
|
|||
|
||||
.idea/
|
||||
.history/
|
||||
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
/** @type {import('@remix-run/dev').AppConfig} */
|
||||
const postcssNesting = require("postcss-nesting");
|
||||
module.exports = {
|
||||
appDirectory: "src",
|
||||
future: {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 708 KiB After Width: | Height: | Size: 708 KiB |
11
src/root.tsx
11
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() {
|
|||
<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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue