Skip to content

Commit

Permalink
/ updated version of metatags in theme.config
Browse files Browse the repository at this point in the history
  • Loading branch information
windy-ux committed Dec 12, 2024
1 parent ddd536f commit 3626e9b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions documentation/docs/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const config: DocsThemeConfig = {
head: function useHead() {
const config = useConfig()
const { route } = useRouter()
const isDefault = route === '/' || !config.title
const image = 'https://nymtech.net/nym_logo.jpg'

const description =
Expand All @@ -19,17 +18,25 @@ const config: DocsThemeConfig = {
return (
<>
<title>{title}</title>
<meta name="author" content="Nym" />
<link rel="canonical" href={"https://nym.com/docs/" + route} />

<meta property="og:title" content={title} />
<meta property="og:site_name" content="Nym docs"></meta>
<meta name="description" content={description} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
<meta property="og:type" content="website" />
<meta property="og:url" content={"https://nym.com/docs/" + route}></meta>

<meta name="msapplication-TileColor" content="#fff" />
<meta httpEquiv="Content-Language" content="en" />
<meta property="twitter:title" content={title}></meta>
<meta property="twitter:description" content={description}></meta>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site:domain" content="nym.com" />
<meta name="twitter:url" content={"https://nym.com/" + route} />
<meta name="apple-mobile-web-app-title" content="Nextra" />
<meta name="twitter:site" content="@nymproject" />
<meta name="twitter:site:domain" content="nym.com/docs/" />
<meta name="twitter:url" content={"https://nym.com/docs/" + route} />

<meta name="apple-mobile-web-app-title" content="Nym docs" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<link
Expand Down

0 comments on commit 3626e9b

Please sign in to comment.