Skip to content

Add /reports/<id> viewer URLs to the term sitemap alongside static pages - #505

Merged
Robbie1977 merged 1 commit into
masterfrom
feature/term-sitemaps
Sep 21, 2026
Merged

Robbie1977 merged 1 commit into
masterfrom
feature/term-sitemaps

Conversation

@Robbie1977

Copy link
Copy Markdown

The static term pages at /term// carry sitemap_exclude: true because
Hugo's own sitemap.xml has no pagination -- a sharded sitemap-terms.xml
index (sitemap1.xml..) is written separately for them and advertised in
robots.txt. That shard writer now lives in vfbterms.py itself: after
every group is processed it writes sitemap1.xml.. plus the
sitemap-terms.xml index, listing both the static page and the
/reports/ viewer URL (now indexable, per the recent geppetto-vfb
Soft-404 fix) for every term.

Output directory is an optional 3rd CLI argument, and should be /src/public
-- the same directory deploy.sh builds Hugo into (RancherServices'
hugo-builder service, workspace update_vfb_static_site), which
vfb-static-site serves straight from:

python3 vfbterms.py <content-path> /src/public

Omit the argument and nothing changes from today -- the call in
test_vfbterms.yml is unaffected. Wiring this in is a one-line change to
the Jenkins job's vfbterms.py invocation; nothing else currently writes
sitemap1.xml/sitemap-terms.xml as far as I can find, so this replaces
that step rather than racing it.

The static term pages at /term/<slug>/ carry sitemap_exclude: true because
Hugo's own sitemap.xml has no pagination -- a sharded sitemap-terms.xml
index (sitemap1.xml..) is written separately for them, advertised in
robots.txt. That shard writer now lives in vfbterms.py itself rather than
an undocumented external step: after every group is processed it emits
sitemap1.xml.. plus the sitemap-terms.xml index, listing both the static
page and the /reports/<id> viewer URL (now indexable per the geppetto-vfb
SEO fix) for every term.

Output directory is an optional 3rd CLI argument -- point it at wherever
Jenkins publishes static files from (e.g. the Hugo public/ directory) to
wire it into the live site; omit it and nothing changes from today.
@Robbie1977
Robbie1977 merged commit f06878b into master Sep 21, 2026
4 checks passed
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.

1 participant