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

Add Date Metadata (via Sitemap and OpenGraph Tags) #477

Open
amanifarooque opened this issue Apr 7, 2022 · 0 comments
Open

Add Date Metadata (via Sitemap and OpenGraph Tags) #477

amanifarooque opened this issue Apr 7, 2022 · 0 comments

Comments

@amanifarooque
Copy link
Contributor

amanifarooque commented Apr 7, 2022

This is a continuation of the work done in #467.

1. Add to the sitemap
With that PR, we added the gatsby-plugin-sitemap to the template. However, the standard implementation does not include the date, which both Search.gov and other search engines use to discover content changes.

The plugin documentation lists an example of how to implement (https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#example) but I haven't figured out how to do so in the context of this template.

Our request is that the in the sitemap reflects the date field in each page's frontmatter.

2. Add article:published_time Open Graph tag to SEO component
Here is the start for the suggested changes: amanifarooque@27622f8

The OpenGraph article:published_time field can be used to boost relevancy for newly published or newly updated articles. At the least, we would love to have this added across all blog type posts, but a last_updated field on any webpage would also be useful for the Search.gov ranking algorithm.

Note that the sample changes above do not have it formatted properly in ISO format; I wasn't sure how to update that, so leaning on your expertise there!

@amanifarooque amanifarooque changed the title Add <lastmod> to sitemap Add Date Metadata (via Sitemap and OpenGraph Tags) Apr 8, 2022
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

No branches or pull requests

1 participant