Skip to content

Commit

Permalink
Sitemap: add changefreq to static pages (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 authored Jan 9, 2025
1 parent 0152795 commit 1f57fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions svjis/articles/sitemaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1f57fdd

Please sign in to comment.