Skip to content

Commit bc25d77

Browse files
Limit sitemap index to supermodel repos only for now
Community repo sitemaps will be added once their builds are stable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c3ea185 commit bc25d77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generate-index.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ func generateSitemap(cfg Config) error {
7979
b.WriteString(`<?xml version="1.0" encoding="UTF-8"?>` + "\n")
8080
b.WriteString(`<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">` + "\n")
8181
for _, cat := range cfg.Categories {
82+
if cat.Slug != "supermodel" {
83+
continue
84+
}
8285
for _, repo := range cat.Repos {
8386
b.WriteString(fmt.Sprintf(" <sitemap>\n <loc>%s/%s/sitemap.xml</loc>\n </sitemap>\n", baseURL, url.PathEscape(repo.Name)))
8487
}

0 commit comments

Comments
 (0)