Skip to content
Permalink
Browse files

Some pecularities regarding RSS feeds.

  • Loading branch information
felixfontein committed Oct 19, 2016
1 parent 9e55cbb commit 0886a963cc9e17ac7133323f3b69466efcdb315d
@@ -504,6 +504,8 @@ class Taxonomy(BasePlugin):
# The template to use for the classification overview page.
# Set to None to avoid generating overviews.
template_for_classification_overview = "list.tmpl"
# Whether to always disable RSS feed generation
always_disable_rss = False
# Whether this classification applies to posts.
apply_to_posts = True
# Whether this classification applies to pages.
@@ -46,6 +46,7 @@ class Archive(Taxonomy):
include_posts_into_hierarchy_root = True
generate_atom_feeds_for_post_lists = False
template_for_classification_overview = None
always_disable_rss = True
apply_to_posts = True
apply_to_pages = False
minimum_post_count_per_classification_in_overview = 1
@@ -46,6 +46,7 @@ class PageIndex(Taxonomy):
generate_atom_feeds_for_post_lists = False
template_for_list_of_one_classification = "list.tmpl"
template_for_classification_overview = None
always_disable_rss = True
apply_to_posts = False
apply_to_pages = True
omit_empty_classifications = True
@@ -274,7 +274,7 @@ def _generate_classification_page(self, taxonomy, classification, post_list, lan
yield self._generate_subclassification_page(taxonomy, node, context, kw, lang)
return
# Generate RSS feed
if kw["generate_rss"]:
if kw["generate_rss"] and not taxonomy.always_disable_rss:
yield self._generate_classification_page_as_rss(taxonomy, classification, filtered_posts, context['title'], context.get("description"), kw, lang)
# Render HTML
if taxonomy.show_list_as_index:

0 comments on commit 0886a96

Please sign in to comment.
You can’t perform that action at this time.