Skip to content

Commit

Permalink
Only show published blog entries in sitemap.
Browse files Browse the repository at this point in the history
  • Loading branch information
jphalip committed May 11, 2011
1 parent ba8fd92 commit 0ea9363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_website/sitemaps.py
Expand Up @@ -34,7 +34,7 @@ class WeblogSitemap(Sitemap):
priority = 0.4

def items(self):
return Entry.objects.filter(pub_date__lte=datetime.datetime.now())
return Entry.objects.published()

# lastmod is not implemented, because weblog pages contain comments.
# We'd rather not look up the date of the latest comment -- not worth the overhead.
Expand Down

0 comments on commit 0ea9363

Please sign in to comment.