Files
sm-seo-plugin/models/noindex_path.go
Jakub Zych 9de6b2ec83 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.
2026-11-04 22:44:26 +01:00

16 lines
572 B
Go

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" }