You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9cc8b75
Browse filesBrowse the repository at this point in the historyBrowse files
Add /reports/<id> viewer URLs to the term sitemap alongside static pages
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.
('fbbt/', 'FBbt classes', "MATCH (n:Class) WHERE n.short_form starts with 'FBbt' WITH n.short_form as id ORDER BY id ASC RETURN collect(distinct id) as ids"),
@@ -1174,6 +1278,11 @@ def test_medulla_page():
1174
1278
forrelative_dir, label, queryingroups:
1175
1279
process_group(mypath, relative_dir, label, query)
1176
1280
1281
+
ifsitemap_dir:
1282
+
write_sitemaps(sitemap_dir)
1283
+
else:
1284
+
print("No sitemap output dir given (3rd argument) -- skipping sitemap write.")
0 commit comments