Skip to content

Commit 7b294db

Browse files
ThomasArdalclaude
andcommitted
Include full post content in feed.json, limit to last 6 entries
Lets the in-app widget expand an entry inline (images, links, code blocks) instead of only linking out to the full site. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fhp7zVUFQLn7SQKdvu8mXV
1 parent 57f570d commit 7b294db

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

feed.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
---
33
[
4-
{% for post in site.posts limit:10 %}
4+
{% for post in site.posts limit:6 %}
55
{
66
"url": {{ post.url | jsonify }},
77
"title": {{ post.title | jsonify }},
88
"date": {{ post.date | date_to_xmlschema | jsonify }},
99
"category": {{ post.categories.first | jsonify }},
10-
"excerpt": {{ post.content | replace: "</p>", " " | replace: "<br />", " " | strip_html | strip_newlines | strip | truncate: 140 | jsonify }}
10+
"excerpt": {{ post.content | replace: "</p>", " " | replace: "<br />", " " | strip_html | strip_newlines | strip | truncate: 140 | jsonify }},
11+
"content": {{ post.content | jsonify }}
1112
}{% unless forloop.last %},{% endunless %}
1213
{% endfor %}
1314
]

0 commit comments

Comments
 (0)