mkdocs_nype.plugins.unique_blog_date.plugin
Synopsis
MkDocs plugin made to patch the date in a material/blog plugin instance.
This plugin was formerly a hook:
By default when using multiple blog instances the post_date_format
option of the last instance modifies the date format for all instances. The patch replaces the date processor between pages to avoid the need to modify the template.
MIT License 2024 Kamil Krzyśków (HRY) for Nype (npe.cm)
LOG
Logger instance for this plugin.
UniqueBlogDatePlugin
Bases: BasePlugin[UniqueBlogDateConfig]
on_config
Validate a blog instance with the given root exists
on_env
Main function. Triggers just before the build begins.
on_page_context
Depending on the page url replace the filter
_format_date
Copied from the material/blog plugin