mirror of
https://github.com/oceanprotocol/ipfs
synced 2024-11-24 19:10:16 +01:00
SEO tweaks, fix root assets
This commit is contained in:
parent
da0a24193b
commit
6d377c19cd
@ -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",
|
||||
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
BIN
public/share.png
Normal file
BIN
public/share.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
@ -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: [
|
||||
|
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user