@@ -643,18 +643,18 @@ class Taxonomy(BasePlugin):
643
643
The template to use for the subcategories list when
644
644
show_list_as_subcategories_list is True.
645
645
646
- generate_atom_feeds_for_post_lists = False:
647
- Whether to generate Atom feeds for post lists in case GENERATE_ATOM is set.
648
-
649
646
template_for_single_list = "tagindex.tmpl":
650
647
The template to use for the post list for one classification.
651
648
652
649
template_for_classification_overview = "list.tmpl":
653
650
The template to use for the classification overview page.
654
651
Set to None to avoid generating overviews.
655
652
653
+ always_disable_atom = False:
654
+ Whether to always disable Atom feed generation.
655
+
656
656
always_disable_rss = False:
657
- Whether to always disable RSS feed generation
657
+ Whether to always disable RSS feed generation.
658
658
659
659
apply_to_posts = True:
660
660
Whether this classification applies to posts.
@@ -698,9 +698,9 @@ class Taxonomy(BasePlugin):
698
698
show_list_as_subcategories_list = False
699
699
show_list_as_index = False
700
700
subcategories_list_template = "taxonomy_list.tmpl"
701
- generate_atom_feeds_for_post_lists = False
702
701
template_for_single_list = "tagindex.tmpl"
703
702
template_for_classification_overview = "list.tmpl"
703
+ always_disable_atom = False
704
704
always_disable_rss = False
705
705
apply_to_posts = True
706
706
apply_to_pages = False
@@ -860,6 +860,10 @@ def should_generate_classification_page(self, classification: str, post_list: 't
860
860
"""Only generates list of posts for classification if this function returns True."""
861
861
return True
862
862
863
+ def should_generate_atom_for_classification_page (self , classification : str , post_list : 'typing.List[nikola.post.Post]' , lang : str ) -> bool :
864
+ """Only generates Atom feed for list of posts for classification if this function returns True."""
865
+ return self .should_generate_classification_page (classification , post_list , lang )
866
+
863
867
def should_generate_rss_for_classification_page (self , classification : str , post_list : 'typing.List[nikola.post.Post]' , lang : str ) -> bool :
864
868
"""Only generates RSS feed for list of posts for classification if this function returns True."""
865
869
return self .should_generate_classification_page (classification , post_list , lang )
0 commit comments