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

Address sitemap.xml and meta tags for search.gov #8282

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

Conversation

nick-mon1
Copy link
Contributor

@nick-mon1 nick-mon1 commented Dec 31, 2024

Summary

Fixes sitemap validation issues and meta tags for search.gov indexing. Current sitemap is invalid and this is causing re-indexing issues when new content is added.

Preview

Link to Preview

Solution

Sitemap

Set namespacing for sitemap.xml hugo generation. Run sitemap.xml on https://www.mysitemapgenerator.com/ to validate XML.

Priority needs to be a value from 0.0 to 1.0. Updated code to use a decimal as hugo escapes this in the config.yml setup.

Search.gov Indexing

Adds modified_time as per search.gov docs on content pages. This will help increase our re-indexing frequency.

New field:

<meta property="article:modified_time" content="2024-12-31T12:25:00-0500">

How To Test

  1. Run sitemap on validator link
  2. Check that modified_time is different than published_time and exists on content pages

Copy link

🔍 Preview in Federalist

@nick-mon1 nick-mon1 self-assigned this Dec 31, 2024
@nick-mon1 nick-mon1 added the SEO Any seo related fix label Dec 31, 2024
@nick-mon1 nick-mon1 marked this pull request as ready for review December 31, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SEO Any seo related fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants