- golem15.sitemap plugin: golem15_sitemap_definitions migration, Definition model (Fillable theme and data) with tolerant PHP-shaped item decoding and PHP toArray item encoding - Url::to and buildUrl port, libxml-format serializer, generator for url and registry items - GET /sitemap.xml serves the definition with theme default (404 without one, empty body without items) - tests/php/gen-goldens.php and the tracer golden; TestSitemapGolden and the Postgres TestSitemapTracer
18 lines
452 B
Go
18 lines
452 B
Go
// Package updates holds the sitemap plugin's ordered gormigrate steps.
|
|
package updates
|
|
|
|
import "github.com/go-gormigrate/gormigrate/v2"
|
|
|
|
var all []*gormigrate.Migration
|
|
|
|
// Register appends gormigrate steps so later files add migrations without
|
|
// editing plugin.go.
|
|
func Register(ms ...*gormigrate.Migration) {
|
|
all = append(all, ms...)
|
|
}
|
|
|
|
// All returns every migration registered by this package.
|
|
func All() []*gormigrate.Migration {
|
|
return all
|
|
}
|