Skip to content

Commit

Permalink
try this too
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 31, 2022
1 parent bdd317e commit 54bad21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
13 changes: 0 additions & 13 deletions docs/src/modules/components/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ interface HeadProps {
largeCard?: boolean;
title: string;
type?: string;
authors?: string[];
publicationDate?: string;
}

export default function Head(props: HeadProps) {
Expand All @@ -30,8 +28,6 @@ export default function Head(props: HeadProps) {
largeCard = true,
title = t('headTitle'),
type = 'website',
authors = [],
publicationDate,
} = props;
const userLanguage = useUserLanguage();
const router = useRouter();
Expand All @@ -58,15 +54,6 @@ export default function Head(props: HeadProps) {
<meta property="og:description" content={description} />
<meta property="og:image" content={preview} />
<meta property="og:ttl" content="604800" />
{/* Advanced open graph description (https://ogp.me/#type_article) */}
{type === 'article' && (
<React.Fragment>
{authors.map((author) => (
<meta property="article:author" content={author} />
))}
{publicationDate && <meta property="article:published_time" content={publicationDate} />}
</React.Fragment>
)}
{/* Algolia */}
<meta name="docsearch:language" content={userLanguage} />
{/* #major-version-switch */}
Expand Down
3 changes: 1 addition & 2 deletions docs/src/modules/components/TopLayoutBlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ function TopLayoutBlog(props) {
{headers.authors
.map((key) => authors[key].name)
.map((author) => (
<meta property="article:author" content={author} />
<meta property="author" content={author} />
))}
<meta property="article:published_time" content={headers.date} />
</Head>
<Root className={className}>
<AppContainer component="main" className={classes.container}>
Expand Down

0 comments on commit 54bad21

Please sign in to comment.