feat: auto-link phrases in the resolve answer (tracer)
- golem15_seo_autolinks (migration 202610280007) and the settings column autolink_max (Links tab, 0 to 20, default 3) - classes/autolinks.go: checked save and delete with history, ForPage - ok resolve answers carry autolinks for the page's locale without disabled phrases and links to the page itself, and autolink_max
This commit is contained in:
@@ -48,7 +48,7 @@ var SettingsColumns = []string{
|
||||
"local_latitude", "local_longitude", "local_hours", "page_form",
|
||||
"page_segment", "page_title_suffix", "page_description_suffix",
|
||||
"crawl_schedule", "crawl_max_pages", "crawl_delay", "crawl_keep",
|
||||
"generic_anchors",
|
||||
"generic_anchors", "autolink_max",
|
||||
}
|
||||
|
||||
// settingsText maps the plain text settings columns to their fields.
|
||||
@@ -102,6 +102,7 @@ func settingsInts(st *models.Settings) map[string]*int {
|
||||
"crawl_max_pages": &st.CrawlMaxPages,
|
||||
"crawl_delay": &st.CrawlDelay,
|
||||
"crawl_keep": &st.CrawlKeep,
|
||||
"autolink_max": &st.AutolinkMax,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,6 +159,7 @@ func SettingsValues(st models.Settings) map[string]any {
|
||||
"crawl_delay": st.CrawlDelay,
|
||||
"crawl_keep": st.CrawlKeep,
|
||||
"generic_anchors": st.GenericAnchors,
|
||||
"autolink_max": st.AutolinkMax,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user