Skip to content

Commit 57f570d

Browse files
ThomasArdalclaude
andcommitted
Add an excerpt field to feed.json for the in-app widget
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fhp7zVUFQLn7SQKdvu8mXV
1 parent 050126b commit 57f570d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

feed.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"url": {{ post.url | jsonify }},
77
"title": {{ post.title | jsonify }},
88
"date": {{ post.date | date_to_xmlschema | jsonify }},
9-
"category": {{ post.categories.first | jsonify }}
9+
"category": {{ post.categories.first | jsonify }},
10+
"excerpt": {{ post.content | replace: "</p>", " " | replace: "<br />", " " | strip_html | strip_newlines | strip | truncate: 140 | jsonify }}
1011
}{% unless forloop.last %},{% endunless %}
1112
{% endfor %}
1213
]

0 commit comments

Comments
 (0)