Skip to content

Commit

Permalink
fix: Auto-fix sitemap metadata for menu pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ristorante Da Michele Baden-Baden committed Jun 22, 2024
1 parent 19e99d3 commit 07b433f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 5 additions & 1 deletion docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 0 additions & 3 deletions docs/src/en/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docs/src/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07b433f

Please sign in to comment.