Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use update date instead of published date #68

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

umbobabo
Copy link

@umbobabo umbobabo commented Nov 6, 2024

NewsArticle type before vs after changes

image

BlogPosting type before vs after changes

image

@umbobabo umbobabo requested a review from a team as a code owner November 6, 2024 16:07
@@ -61,9 +61,17 @@ function getDateModified(content) {
content.posts.length > 0 &&
content.posts[0].publishedDate
) {
// If modifiedTimestamp exists, use it. Otherwise, use publishedDate.
if (content.posts[0].modifiedTimestamp) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to match the semantic convention of a LiveBlog/DataFeed: https://schema.org/dateModified

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you meant to use it as it is? I converted to isoString mainly for consistency with the existing data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants