Documentation

This commit is contained in:
squidfunk 2023-09-03 12:55:11 +02:00
parent 84cb91b21b
commit d2962d9551
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
page = self.blog.file.page page = self.blog.file.page
self._attach_at(page.parent, page, self.blog) self._attach_at(page.parent, page, self.blog)
# Hack: update pages instances in navigation - this can also be removed # Hack: update page instances in navigation - this can also be removed
# once an already open pull request is merged - see https://t.ly/9C_Kz # once an already open pull request is merged - see https://t.ly/9C_Kz
for page in [self.blog, *self.blog.posts, *self.blog.views]: for page in [self.blog, *self.blog.posts, *self.blog.views]:
assert isinstance(page, Page) assert isinstance(page, Page)

View File

@ -174,7 +174,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
page = self.blog.file.page page = self.blog.file.page
self._attach_at(page.parent, page, self.blog) self._attach_at(page.parent, page, self.blog)
# Hack: update pages instances in navigation - this can also be removed # Hack: update page instances in navigation - this can also be removed
# once an already open pull request is merged - see https://t.ly/9C_Kz # once an already open pull request is merged - see https://t.ly/9C_Kz
for page in [self.blog, *self.blog.posts, *self.blog.views]: for page in [self.blog, *self.blog.posts, *self.blog.views]:
assert isinstance(page, Page) assert isinstance(page, Page)