+ {% include ".icons/material/calendar-clock.svg" %}
+
+
+
+ {% endif %}
{% if page.categories %}
diff --git a/material/plugins/blog/plugin.py b/material/plugins/blog/plugin.py
index 35935c86b..175fa7ae6 100644
--- a/material/plugins/blog/plugin.py
+++ b/material/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:
diff --git a/mkdocs.yml b/mkdocs.yml
index bb4cae79b..02d57bc54 100755
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -84,6 +84,7 @@ theme:
# Plugins
plugins:
+ - blog
- search:
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
- minify:
@@ -231,10 +232,3 @@ nav:
- Changelog: insiders/changelog.md
- Blog:
- blog/index.md
- - 2022:
- - blog/posts/blog-support-just-landed.md
- - blog/posts/chinese-search-support.md
- - 2021:
- - blog/posts/the-past-present-and-future.md
- - blog/posts/excluding-content-from-search.md
- - blog/posts/search-better-faster-smaller.md
diff --git a/src/blog-post.html b/src/blog-post.html
index 79be7478e..0a46631be 100644
--- a/src/blog-post.html
+++ b/src/blog-post.html
@@ -87,6 +87,18 @@
+
+ {% if page.meta.date_updated %}
+
+
+ {% include ".icons/material/calendar-clock.svg" %}
+
+
+
+ {% 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: