From 07b433f09eb1c7d26dfc477ad178b183a52843a2 Mon Sep 17 00:00:00 2001 From: Ristorante Da Michele Baden-Baden Date: Fri, 21 Jun 2024 20:13:09 +0200 Subject: [PATCH] fix: Auto-fix sitemap metadata for menu pages --- docs/.vitepress/config/shared.ts | 6 +++++- docs/src/en/menu/index.md | 3 --- docs/src/menu/index.md | 3 --- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 3e7b7f543..66c46b65d 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -83,7 +83,11 @@ export const sharedConfig = defineConfig({ hostname: 'https://da-michele.com/', lastmodDateOnly: true, transformItems: (items) => { - return items.filter((item) => !item.url.includes('404')) + return items.map((item) => ({ + ...item, + changefreq: item.url.includes('/menu/') ? 'hourly' : 'daily', + priority: item.url.includes('/menu/') ? 0.7 : 0.5 + })) } }, srcDir: 'src', diff --git a/docs/src/en/menu/index.md b/docs/src/en/menu/index.md index b541a8e43..5e609155d 100644 --- a/docs/src/en/menu/index.md +++ b/docs/src/en/menu/index.md @@ -9,9 +9,6 @@ head: - [meta, { property: 'article:author', content: 'Vincenzo Romano' }] - [meta, { property: 'article:modified_time', content: 2024-06-21 }] outline: 2 -sitemap: - changefreq: hourly - priority: 0.7 --- # Today's menu diff --git a/docs/src/menu/index.md b/docs/src/menu/index.md index ed86b076f..c68f7ae3d 100644 --- a/docs/src/menu/index.md +++ b/docs/src/menu/index.md @@ -9,9 +9,6 @@ head: - [meta, { property: 'article:author', content: 'Vincenzo Romano' }] - [meta, { property: 'article:modified_time', content: 2024-06-21 }] outline: 2 -sitemap: - changefreq: hourly - priority: 0.7 --- # Tageskarte