1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

Formatting

This commit is contained in:
squidfunk 2023-08-23 10:41:44 +02:00
parent 0986c3a039
commit 06e8ccd979
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
file.url = file.url.replace(path, root)
# Generate entrypoint, if it does not exist yet
self._generate(files, config)
self._generate(config, files)
# Resolve and load posts and generate indexes (run later) - we resolve all
# posts after the navigation is constructed in order to allow other plugins
@ -296,7 +296,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
items = self._resolve_siblings(main, nav)
items[items.index(main)] = page
# Render excerpts and perpare pagination
# Render excerpts and prepare pagination
posts, pagination = self._render(page)
# Render pagination links
@ -518,7 +518,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
# Generate entrypoint - the entrypoint must always be present, and thus is
# created before the navigation is constructed if it does not exist yet
def _generate(self, files: Files, config: MkDocsConfig):
def _generate(self, config: MkDocsConfig, files: Files):
path = os.path.join(self.config.blog_dir, "index.md")
path = os.path.normpath(path)

View File

@ -126,7 +126,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
file.url = file.url.replace(path, root)
# Generate entrypoint, if it does not exist yet
self._generate(files, config)
self._generate(config, files)
# Resolve and load posts and generate indexes (run later) - we resolve all
# posts after the navigation is constructed in order to allow other plugins
@ -296,7 +296,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
items = self._resolve_siblings(main, nav)
items[items.index(main)] = page
# Render excerpts and perpare pagination
# Render excerpts and prepare pagination
posts, pagination = self._render(page)
# Render pagination links
@ -518,7 +518,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
# Generate entrypoint - the entrypoint must always be present, and thus is
# created before the navigation is constructed if it does not exist yet
def _generate(self, files: Files, config: MkDocsConfig):
def _generate(self, config: MkDocsConfig, files: Files):
path = os.path.join(self.config.blog_dir, "index.md")
path = os.path.normpath(path)