Skip to content

Commit

Permalink
Don't add citation metadata on author page (#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi authored Jun 6, 2024
1 parent cf9dc2e commit facf121
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions site/gdocs/OwidGdocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default function OwidGdocPage({
const canonicalUrl = getCanonicalUrl(baseUrl, gdoc)
const pageTitle = getPageTitle(gdoc)
const isDataInsight = gdoc.content.type === OwidGdocType.DataInsight
const isAuthor = gdoc.content.type === OwidGdocType.Author

return (
<html>
Expand All @@ -102,12 +103,14 @@ export default function OwidGdocPage({
atom={isDataInsight ? DATA_INSIGHT_ATOM_FEED_PROPS : undefined}
baseUrl={baseUrl}
>
<CitationMeta
title={content.title || ""}
authors={content.authors}
date={updatedAt || createdAt}
canonicalUrl={canonicalUrl}
/>
{!isAuthor && (
<CitationMeta
title={content.title || ""}
authors={content.authors}
date={updatedAt || createdAt}
canonicalUrl={canonicalUrl}
/>
)}

<script
dangerouslySetInnerHTML={{
Expand Down

0 comments on commit facf121

Please sign in to comment.