lemoncurry/home/sitemaps.py

13 lines
245 B
Python
Raw Permalink Normal View History

from django.contrib import sitemaps
from django.urls import reverse
class HomeSitemap(sitemaps.Sitemap):
2023-08-10 02:52:37 -04:00
changefreq = "daily"
def items(self):
2023-08-10 02:52:37 -04:00
return ("home:index",)
def location(self, item):
return reverse(item)