Skip to content

Commit

Permalink
Fixed dirty rebuilds for blog plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Aug 27, 2023
1 parent 568a5c8 commit acd70cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/plugins/blog/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/blog/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acd70cf

Please sign in to comment.