diff --git a/material/blog-post.html b/material/blog-post.html index 572dd3306..f7d01c87b 100644 --- a/material/blog-post.html +++ b/material/blog-post.html @@ -50,6 +50,16 @@ + {% if page.meta.date_updated %} +
  • + +
  • + {% endif %} {% if page.categories %}
  • + + {% if page.meta.date_updated %} +
  • + +
  • + {% endif %} + {% if page.categories %}
  • diff --git a/src/plugins/blog/plugin.py b/src/plugins/blog/plugin.py index 35935c86b..175fa7ae6 100644 --- a/src/plugins/blog/plugin.py +++ b/src/plugins/blog/plugin.py @@ -358,6 +358,12 @@ class BlogPlugin(BasePlugin[BlogConfig]): page.meta["date"], date_format, config ) + # Format date of last update for rendering + if "date_updated" in page.meta: + page.meta["date_updated_format"] = self._format_date( + page.meta["date_updated"], date_format, config + ) + # Compute readtime if desired and not explicitly set if self.config.post_readtime: