Fixed blog plugin custom templates not working with pagination

This commit is contained in:
squidfunk 2023-11-17 11:21:23 +01:00
parent 1095a4e523
commit 97c7b54505
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -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)