-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update metadata tags in head (#71)
get rid of "Nextra: the next docs builder" and other rough edges. doesn't set a preview image, as link previews with a giant redundant image are uncool. When we have time to make custom images per page, then maaaaybe i'll allow it. License: MIT --------- Signed-off-by: Oli Evans <[email protected]>
- Loading branch information
Showing
4 changed files
with
118 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,77 @@ | ||
import { useConfig } from 'nextra-theme-docs' | ||
import { DocsLogo } from './components/brand' | ||
|
||
const config = { | ||
/** | ||
* @type {import('nextra-theme-docs').DocsThemeConfig} | ||
*/ | ||
export default { | ||
logo: <DocsLogo>web3.storage/<span className='font-bold'>docs</span></DocsLogo>, | ||
primaryHue: { | ||
dark: 192, | ||
light: 200 | ||
}, | ||
primarySaturation: 100, | ||
project: { | ||
link: 'https://github.com/web3-storage/w3up' | ||
}, | ||
docsRepositoryBase: 'https://github.com/web3-storage/www/tree/main', | ||
footer: { | ||
component: <footer className='py-6 text-center text-lg'></footer> | ||
}, | ||
head: <></>, | ||
useNextSeoProps() { | ||
const { frontMatter } = useConfig() | ||
return { | ||
titleTemplate: '%s ⁂ web3.storage' | ||
titleTemplate: '%s ⁂ web3.storage', | ||
description: frontMatter.description || 'Learn how to use web3.storage to decentralize your data storage', | ||
additionalMetaTags: [ | ||
{ content: 'en', httpEquiv: 'Content-Language' }, | ||
{ name: 'apple-mobile-web-app-title', content: 'web3.storage/docs' }, | ||
{ name: 'msapplication-TileColor', content: '#fff' }, | ||
{ name: 'msapplication-TileImage', content: '/app-icon.svg' } | ||
], | ||
openGraph: { | ||
// set when we have a nice preview image. No image more chill tho, so dont rush./ | ||
// images: [ | ||
// { url: frontMatter.image || 'https://web3.storage/social-card-web3storage.jpg' } | ||
// ] | ||
}, | ||
twitter: { | ||
cardType: 'summary', | ||
site: '@web3_storage' | ||
}, | ||
additionalLinkTags: [ | ||
{ | ||
href: '/apple-touch-icon.png', | ||
rel: 'apple-touch-icon', | ||
sizes: '180x180' | ||
}, | ||
{ | ||
href: '/android-chrome-192x192.png', | ||
rel: 'icon', | ||
sizes: '192x192', | ||
type: 'image/png' | ||
}, | ||
{ | ||
href: '/android-chrome-512x512.png', | ||
rel: 'icon', | ||
sizes: '512x512', | ||
type: 'image/png' | ||
}, | ||
{ | ||
href: '/favicon-32x32.png', | ||
rel: 'icon', | ||
sizes: '32x32', | ||
type: 'image/png' | ||
}, | ||
{ | ||
href: '/favicon-16x16.png', | ||
rel: 'icon', | ||
sizes: '16x16', | ||
type: 'image/png' | ||
} | ||
], | ||
} | ||
}, | ||
footer: { | ||
component: ( | ||
<footer className='py-6 text-center text-lg'> | ||
|
||
</footer> | ||
) | ||
}, | ||
primaryHue: { | ||
dark: 192, | ||
light: 200 | ||
}, | ||
primarySaturation: 100, | ||
} | ||
} | ||
|
||
export default config |