feat: noindex paths from the route report leave the sitemaps (tracer)
The route report takes an optional noindex list of static paths. When the key is present the stored set (golem15_seo_noindex_paths) is replaced, and the sitemap filter leaves those paths out with the reason noindex; a changed set asks the sitemap for a debounced rebuild through contract.Rebuilder. A listed noindex address without a CMS record now names sitemap_update_settings, or fix: code without the sitemap plugin.
This commit is contained in:
15
models/noindex_path.go
Normal file
15
models/noindex_path.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// NoindexPath is one static path the frontend's route report names
|
||||
// noindex (P33-58) on golem15_seo_noindex_paths: Path is normalised with
|
||||
// the site's address rules, ReportedAt the time of the report that stored
|
||||
// it. The set is replaced by every report that sends the noindex key.
|
||||
type NoindexPath struct {
|
||||
Path string `gorm:"column:path;primaryKey"`
|
||||
ReportedAt time.Time `gorm:"column:reported_at"`
|
||||
}
|
||||
|
||||
// TableName is golem15_seo_noindex_paths.
|
||||
func (NoindexPath) TableName() string { return "golem15_seo_noindex_paths" }
|
||||
Reference in New Issue
Block a user