diff --git a/material/plugins/blog/plugin.py b/material/plugins/blog/plugin.py index 39212111dbd..9bfb89685d3 100644 --- a/material/plugins/blog/plugin.py +++ b/material/plugins/blog/plugin.py @@ -658,7 +658,7 @@ def _render(self, view: View): # 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 39212111dbd..9bfb89685d3 100644 --- a/src/plugins/blog/plugin.py +++ b/src/plugins/blog/plugin.py @@ -658,7 +658,7 @@ def _render(self, view: View): # 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