builtin filter collision rename groupby -> vgroups

This commit is contained in:
relikd
2022-04-06 13:29:19 +02:00
parent 637524a615
commit df4be7c60a
3 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ class GroupByPlugin(Plugin):
def on_setup_env(self, **extra: object) -> None:
self.creator = GroupBy()
self.env.add_build_program(GroupBySource, GroupByBuildProgram)
self.env.jinja_env.filters.update(groupby=GroupBySource.of_record)
self.env.jinja_env.filters.update(vgroups=GroupBySource.of_record)
# resolve /tag/rss/ -> /tag/rss/index.html (local server only)
@self.env.urlresolver