feat: add crawling settings (#959)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Manuel
2024-09-06 22:51:18 +02:00
committed by GitHub
parent d20384dfe0
commit 19cd41a8e5
11 changed files with 227 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
export const defaultServerSettingsKeys = ["analytics"] as const;
export const defaultServerSettingsKeys = ["analytics", "crawlingAndIndexing"] as const;
export type ServerSettingsRecord = {
[key in (typeof defaultServerSettingsKeys)[number]]: Record<string, unknown>;
@@ -11,6 +11,12 @@ export const defaultServerSettings = {
enableIntegrationData: false,
enableUserData: false,
},
crawlingAndIndexing: {
noIndex: true,
noFollow: true,
noTranslate: true,
noSiteLinksSearchBox: false,
},
} satisfies ServerSettingsRecord;
export type ServerSettings = typeof defaultServerSettings;

View File

@@ -1622,6 +1622,27 @@ export default {
text: "Send the amount of users and whether you've activated SSO",
},
},
crawlingAndIndexing: {
title: "Crawling and Indexing",
warning:
"Enabling or disabling any settings here will severely impact how search engines will index & crawl your page. Any setting is a request and it is up to the crawler to apply these settings. Any modification may take up to multiple days or weeks to apply. Some settings may be search engine specific.",
noIndex: {
title: "No index",
text: "Do not index the website on search engines and don't show it in any search results",
},
noFollow: {
title: "No follow",
text: "Do not follow any links while indexing. Disabling this will lead to crawlers attempting to follow all links on Homarr.",
},
noTranslate: {
title: "No translate",
text: "When the site language is likely not that the user is likely to want to read, Google will show a translation link in the search results",
},
noSiteLinksSearchBox: {
title: "No site links search box",
text: "Google will build a search box with the crawled links along with other direct links. Enabling this will ask Google to disable that box.",
},
},
},
},
tool: {