Skip to content

Commit

Permalink
workaround for post.excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Mar 22, 2021
1 parent 53a9364 commit f57b5ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ablog/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,10 @@ def generate_atom_feeds(app):

# Entry values that support templates
title = post.title
summary = " ".join(paragraph.astext() for paragraph in post.excerpt[0])
if post.excerpt:
summary = " ".join(paragraph.astext() for paragraph in post.excerpt[0])
else:
summary = ""
template_values = {}
for element in ("title", "summary", "content"):
if element in feed_templates:
Expand Down

0 comments on commit f57b5ef

Please sign in to comment.