]> git.maquefel.me Git - brevno-suite/hugo/commit
hugolib: Add hugo.Sites and .Site.IsDefault(), modify .Site.Sites
authorJoe Mooring <joe.mooring@veriphor.com>
Fri, 13 Feb 2026 23:47:18 +0000 (15:47 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 16 Feb 2026 17:57:26 +0000 (18:57 +0100)
commitab62320d6bceece0faa7029f8bd79d546d0f64be
treed4f67ee3ec905a9550d64e96fd6207fe6b596a6d
parent21be4afd49767eb63e3a2304b4c10816c86f799d
hugolib: Add hugo.Sites and .Site.IsDefault(), modify .Site.Sites

Changes:

- Add hugo.Sites to return all sites for all dimensions
- Modify .Site.Sites to return all sites for all dimensions
- Deprecate .Site.Sites in favor of hugo.Sites
- Add .Site.IsDefault() to report whether the current site is the
  default site across all dimensions
- Consolidate tests

Closes #14479
Closes #14481

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
common/hugo/hugo.go
common/hugo/hugo_integration_test.go
common/hugo/hugo_test.go
hugolib/hugo_sites.go
hugolib/hugo_sites_test.go [deleted file]
hugolib/site.go
hugolib/site_sites_test.go [new file with mode: 0644]
resources/page/page_matcher_test.go
resources/page/site.go