feat: hreflang alternates and the sitemap filter contract
- every listed address of a record with more than one listed locale carries xhtml:link alternates for each locale plus x-default on the default locale (D-55 to D-57); no alternate for a missing translation - each page of records and the additional addresses go to the published contract.Filter in one batch: Exclude leaves the files with its reason, Group moves the address, LastMod seeds a new row (D-95, D-24) - classes.Listing implements contract.Listing and is published in Register
This commit is contained in:
@@ -10,7 +10,9 @@ import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
|
||||
"git.golem15.com/golem15/sm-sitemap-plugin/classes"
|
||||
"git.golem15.com/golem15/sm-sitemap-plugin/console"
|
||||
"git.golem15.com/golem15/sm-sitemap-plugin/contract"
|
||||
"git.golem15.com/golem15/sm-sitemap-plugin/models"
|
||||
"git.golem15.com/golem15/sm-sitemap-plugin/updates"
|
||||
"git.golem15.com/golem15/summercms/modules/backpack"
|
||||
@@ -46,9 +48,11 @@ func (p *Plugin) ID() string { return "golem15.sitemap" }
|
||||
// from a named plugin, and a Filter through the service registry.
|
||||
func (p *Plugin) Requires() []string { return nil }
|
||||
|
||||
// Register publishes the sitemap's contract.Listing for other plugins
|
||||
// (D-95).
|
||||
func (p *Plugin) Register(app *backpack.App) error {
|
||||
p.app = app
|
||||
return nil
|
||||
return app.Publish[contract.Listing](classes.Listing{App: app})
|
||||
}
|
||||
|
||||
// Boot keeps the booted application for the routes, jobs and commands and
|
||||
|
||||
Reference in New Issue
Block a user