mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed blog plugin custom templates not working with pagination
This commit is contained in:
parent
1095a4e523
commit
97c7b54505
@ -620,7 +620,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
|
|||||||
|
|
||||||
# Create and yield view
|
# Create and yield view
|
||||||
if not isinstance(file.page, View):
|
if not isinstance(file.page, View):
|
||||||
yield View(None, file, config)
|
yield view.__class__(None, file, config)
|
||||||
|
|
||||||
# Assign pages and posts to view
|
# Assign pages and posts to view
|
||||||
assert isinstance(file.page, View)
|
assert isinstance(file.page, View)
|
||||||
|
Loading…
Reference in New Issue
Block a user