Repository navigation
Keep only the blog RSS feeds; turn off git page dates - #1613
Open
kristin-kronstain-brown wants to merge 5 commits into
Open
kristin-kronstain-brown wants to merge 5 commits into
kristin-kronstain-brown wants to merge 5 commits into
Conversation
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
4 of 5 tasks
Deploying agentproxy with
|
| Latest commit: |
8710a16
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d000f83b.agentproxy.pages.dev |
| Branch Preview URL: | https://kkb-slim-rss.agentproxy.pages.dev |
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
kristin-kronstain-brown
marked this pull request as ready for review
December 3, 2026 17:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR keeps only the blog's RSS feeds and turns off the feeds for every docs section. The site's feed output drops from about 159 MB to 3.6 MB.
It also turns off git-based page dates, so docs pages no longer get a sitemap
<lastmod>, an Open Grapharticle:modified_time, or a JSON-LDdateModified. Blog posts keep thedatethey set in front matter.Before this change, the site built about 880 section feeds. Each one carried the full content of up to 50 pages, including every old docs version. No page linked to any of them, and their items had no real dates.
Changes
hugo.yaml:sectiondropsRSS, andtaxonomyandtermare HTML only.homekeepsRSS, so/index.xmlstill lists the blog posts.content/blog/_index.mdaddsrssto its ownoutputs, so/blog/index.xmlkeeps working._index.mdfiles drop"rss"from theiroutputs.layouts/_default/list.rss.xml, a copy of Hextra's template, so the theme's template applies.hugo.yamldropsenableGitInfo, andfrontmatter.lastmodbecomes["lastmod", "date", "publishDate"].Why drop the page dates
assets/. Editing a snippet does not change the wrapper's git date.lastmodonly when it is "consistently and verifiably accurate", and trusts or ignores all of a site's dates together, as described in https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-pingsolo-io/docs-theme-extras#111 tracks a prototype that dates each page from the snippets it uses.
Results
Local build of this branch:
/index.xml/blog/index.xmlNo other feeds are built. The sitemap lists 4,761 pages, and 49 of them have a
<lastmod>. Those are the 47 blog posts, the blog list page, and the home page. Hextra adds no RSS<link rel="alternate">tags, so no page points at a removed feed.How to test
hugo --gc --minify.find public -name '*.xml' -not -name 'sitemap*'. Onlyindex.xmlandblog/index.xmlshould be listed.public/index.xmland check that it lists the blog posts with their featured images.grep -B1 '<lastmod>' public/sitemap.xml | grep '<loc>'. Only blog pages and the home page should be listed.🤖 Generated with Claude Code