SEO tweaks, fix root assets

This commit is contained in:
Matthias Kretschmann 2019-10-17 14:15:39 +02:00
parent da0a24193b
commit 6d377c19cd
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 24 additions and 2 deletions

View File

@ -17,12 +17,14 @@
"@zeit/next-css": "^1.0.1",
"ipfs-http-client": "^39.0.0",
"next": "9.1.1",
"next-seo": "^2.1.2",
"next-svgr": "0.0.2",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-dropzone": "^10.1.10"
},
"devDependencies": {
"@types/next-seo": "^1.10.0",
"@types/node": "^12.11.1",
"@types/react": "^16.9.9",
"@typescript-eslint/eslint-plugin": "^2.4.0",

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

BIN
public/share.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@ -1,6 +1,7 @@
module.exports = {
title: 'Ocean Protocol 💖 IPFS',
description: `Ocean Protocol's public IPFS Node, setup to be a public gateway, and to provide some access to its HTTP API for everyone.<br /><a href="https://blog.oceanprotocol.com/ocean-and-ipfs-sitting-in-the-merkle-tree-43c623c356d7">Learn More →</a>`,
url: 'https://ipfs.oceanprotocol.com',
ipfsGateway: 'https://ipfs.oceanprotocol.com',
ipfsNodeUri: 'https://ipfs.oceanprotocol.com:443',
links: [

View File

@ -1,8 +1,9 @@
import React, { ReactNode } from 'react'
import Head from 'next/head'
import { NextSeo } from 'next-seo'
import Footer from './components/Footer'
import styles from './Layout.module.css'
import { title } from '../site.config'
import { title, description, url } from '../site.config'
export default function Layout({
children,
@ -14,10 +15,28 @@ export default function Layout({
return (
<div className={styles.app}>
<Head>
<title>{pageTitle}</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<NextSeo
title={pageTitle}
description={description}
canonical={url}
openGraph={{
url,
title,
description,
images: [{ url: `${url}/share.png` }],
// eslint-disable-next-line @typescript-eslint/camelcase
site_name: title
}}
twitter={{
handle: '@oceanprotocol',
site: '@oceanprotocol',
cardType: 'summary_large_image'
}}
/>
{children}
<Footer />