Beispiel #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
Beispiel #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
Beispiel #3
0
 def description(self):
     return strip_tags(blog_page().description)
Beispiel #4
0
 def title(self):
     return blog_page().title
Beispiel #5
0
 def description(self):
     return strip_tags(blog_page().description)
Beispiel #6
0
 def title(self):
     return blog_page().title