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
def description(self): return strip_tags(blog_page().description)
def title(self): return blog_page().title