From 97c7b545051f5ef992ce058c40dcc991aa2aa4d4 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 17 Nov 2023 11:21:23 +0100 Subject: [PATCH] Fixed blog plugin custom templates not working with pagination --- src/plugins/blog/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/blog/plugin.py b/src/plugins/blog/plugin.py index dad7295b7..6ae2c2c84 100644 --- a/src/plugins/blog/plugin.py +++ b/src/plugins/blog/plugin.py @@ -620,7 +620,7 @@ class BlogPlugin(BasePlugin[BlogConfig]): # Create and yield view if not isinstance(file.page, View): - yield View(None, file, config) + yield view.__class__(None, file, config) # Assign pages and posts to view assert isinstance(file.page, View)