|
27 | 27 | """Render the taxonomy overviews, classification pages and feeds."""
|
28 | 28 |
|
29 | 29 | from __future__ import unicode_literals
|
| 30 | +import blinker |
30 | 31 | import os
|
31 | 32 | import natsort
|
32 | 33 | from copy import copy
|
@@ -118,6 +119,14 @@ def _render_classification_overview(self, classification_name, template, lang, c
|
118 | 119 | if "pagekind" not in context:
|
119 | 120 | context["pagekind"] = ["list", "tags_page"]
|
120 | 121 | output_name = os.path.join(self.site.config['OUTPUT_FOLDER'], self.site.path('{}_index'.format(classification_name), None, lang))
|
| 122 | + blinker.signal('generate_classification_overview').send({ |
| 123 | + 'site': self.site, |
| 124 | + 'classification_name': classification_name, |
| 125 | + 'lang': lang, |
| 126 | + 'context': context, |
| 127 | + 'kw': kw, |
| 128 | + 'output_name': output_name, |
| 129 | + }) |
121 | 130 | task = self.site.generic_post_list_renderer(
|
122 | 131 | lang,
|
123 | 132 | [],
|
@@ -322,6 +331,15 @@ def _generate_classification_page(self, taxonomy, classification, post_list, lan
|
322 | 331 | kw["index_file"] = self.site.config['INDEX_FILE']
|
323 | 332 | context = copy(context)
|
324 | 333 | context["permalink"] = self.site.link(taxonomy.classification_name, classification, lang)
|
| 334 | + blinker.signal('generate_classification_page').send({ |
| 335 | + 'site': self.site, |
| 336 | + 'taxonomy': taxonomy, |
| 337 | + 'classification': classification, |
| 338 | + 'lang': lang, |
| 339 | + 'posts': filtered_posts, |
| 340 | + 'context': context, |
| 341 | + 'kw': kw, |
| 342 | + }) |
325 | 343 | # Decide what to do
|
326 | 344 | if taxonomy.has_hierarchy and taxonomy.show_list_as_subcategories_list:
|
327 | 345 | # Determine whether there are subcategories
|
|
0 commit comments