From 1f57fdd1121743a6e063993ebff91d371ab99a52 Mon Sep 17 00:00:00 2001 From: berk76 Date: Thu, 9 Jan 2025 10:28:42 +0100 Subject: [PATCH] Sitemap: add changefreq to static pages (#125) --- svjis/articles/sitemaps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svjis/articles/sitemaps.py b/svjis/articles/sitemaps.py index 6702738..70fc63f 100644 --- a/svjis/articles/sitemaps.py +++ b/svjis/articles/sitemaps.py @@ -10,6 +10,9 @@ def items(self): def location(self, item): return reverse(item) + def changefreq(self, item): + return {'main': 'daily', 'contact': 'monthly'}[item] + class ArticleSitemap(Sitemap): def items(self):