Skip to content

Commit

Permalink
Fix date in CitationMeta
Browse files Browse the repository at this point in the history
It should be the same as we display to the reader in the post, which is
the publication date.
  • Loading branch information
rakyi committed Jan 9, 2025
1 parent c10537f commit 34fb547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/gdocs/OwidGdocPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function OwidGdocPage({
debug?: boolean
isPreviewing?: boolean
}) {
const { content, createdAt, updatedAt } = gdoc
const { content, createdAt, publishedAt } = gdoc

const pageDesc = getPageDesc(gdoc)
const featuredImageFilename = getFeaturedImageFilename(gdoc)
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function OwidGdocPage({
<CitationMeta
title={content.title || ""}
authors={content.authors}
date={updatedAt || createdAt}
date={publishedAt || createdAt}
canonicalUrl={canonicalUrl}
/>
)}
Expand Down

0 comments on commit 34fb547

Please sign in to comment.