Skip to content

Commit

Permalink
Add google site verification tag (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslanciaux committed Oct 13, 2023
1 parent be32bb9 commit df49889
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config: Config = {
indexName: 'crawler_Topos docs platform (new)',
placeholder: 'Search documentation'
},
googleSiteVerification: 'ewK_x9p9N-cr_rA0dKgdo6YGqZGgnRcBVn2bZeaZQ_o',
navigation: [
{
label: 'What is Topos?',
Expand Down Expand Up @@ -110,7 +111,7 @@ const config: Config = {
],
storage: {
cookieConsentKey: 'cookieConsent'
}
},
};

export default config;
7 changes: 6 additions & 1 deletion src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { ZoomImage } from '../mdx/ZoomImage';
import { MDXProvider } from '@mdx-js/react';
import Base from '../base';
import formatSlugToImageName from '../../utils/formatSlugToImageName';
import CookieConsent from '../CookieConsent';

export const Head = ({ pageContext }: PageNode) => {
const title = `${
Expand All @@ -46,6 +45,12 @@ export const Head = ({ pageContext }: PageNode) => {
key={name}
/>
))}
{config.googleSiteVerification && (
<meta
name="google-site-verification"
content={config.googleSiteVerification}
/>
)}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content={config.twitterName} />
<meta name="og:site_name" content={config.title} />
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ export default interface Config {
indexPath: string;
docSearch: DocSearch;
storage: IStorage;
googleSiteVerification: string;
}

0 comments on commit df49889

Please sign in to comment.