Exemple #1
0
 def __init__(self, *args, **kwargs):
     """
     Use the title and description of the Blog page for the feed's
     title and description. If the blog page has somehow been
     removed, fall back to the ``SITE_TITLE`` and ``SITE_TAGLINE``
     settings.
     """
     super(PostsRSS, self).__init__(*args, **kwargs)
     page = blog_page()
     if page is not None:
         self.title = page.title
         self.description = strip_tags(page.description)
     else:
         settings.use_editable()
         self.title = settings.SITE_TITLE
         self.description = settings.SITE_TAGLINE
Exemple #2
0
 def __init__(self, *args, **kwargs):
     """
     Use the title and description of the Blog page for the feed's
     title and description. If the blog page has somehow been
     removed, fall back to the ``SITE_TITLE`` and ``SITE_TAGLINE``
     settings.
     """
     super(PostsRSS, self).__init__(*args, **kwargs)
     page = blog_page()
     if page is not None:
         self.title = page.title
         self.description = strip_tags(page.description)
     else:
         settings.use_editable()
         self.title = settings.SITE_TITLE
         self.description = settings.SITE_TAGLINE
Exemple #3
0
 def description(self):
     return strip_tags(blog_page().description)
Exemple #4
0
 def title(self):
     return blog_page().title
Exemple #5
0
 def description(self):
     return strip_tags(blog_page().description)
Exemple #6
0
 def title(self):
     return blog_page().title