diff --git a/material/plugins/blog/plugin.py b/material/plugins/blog/plugin.py index 39212111d..9bfb89685 100644 --- a/material/plugins/blog/plugin.py +++ b/material/plugins/blog/plugin.py @@ -658,7 +658,7 @@ class BlogPlugin(BasePlugin[BlogConfig]): # Render excerpts for selected posts posts = [ self._render_post(post.excerpt, view) - for post in posts + for post in posts if post.excerpt ] # Return posts and pagination diff --git a/src/plugins/blog/plugin.py b/src/plugins/blog/plugin.py index 39212111d..9bfb89685 100644 --- a/src/plugins/blog/plugin.py +++ b/src/plugins/blog/plugin.py @@ -658,7 +658,7 @@ class BlogPlugin(BasePlugin[BlogConfig]): # Render excerpts for selected posts posts = [ self._render_post(post.excerpt, view) - for post in posts + for post in posts if post.excerpt ] # Return posts and pagination