From acd70cf04a5ff4ecd955ed46571ebceaf2ddad66 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 27 Aug 2023 12:56:28 +0200 Subject: [PATCH] Fixed dirty rebuilds for blog plugin --- material/plugins/blog/plugin.py | 2 +- src/plugins/blog/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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