text: from django.contrib.sitemaps import Sitemap 
  from .models import Post, Category, Tag
  
  class PostSiteMap(Sitemap):
      changefreq = 'weekly'
      priority = 0.9
  
      def items(self):
          return Post.published.all()
  
      def lastmod(self, obj):
          return obj.updated
  
  class CategorySiteMap(Sitemap):
      changefreq = 'weekly'
      priority = 0.9
  
      def items(self):
          return Category.objects.all()
  
      def lastmod(self, obj):
          return obj.updated
  
  class TagSiteMap(Sitemap):
      changefreq = 'weekly'
      priority = 0.9
  
      def items(self):
          return Tag.objects.all()
  
      def lastmod(self, obj):
          return obj.updated