diff --git a/src/feeds/json.njk b/src/feeds/json.njk index cff2498..7e5e9c6 100644 --- a/src/feeds/json.njk +++ b/src/feeds/json.njk @@ -28,7 +28,7 @@ "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %}, "date_published": "{{ post.date | dateToRfc3339 }}", "tags": {{ post.data.tags | except("posts") | json | safe }}, - "summary": "{{ post | excerpt }}" + "summary": {{ post | excerpt | json | safe }} } {% if not loop.last %},{% endif %} {%- endfor %} diff --git a/src/feeds/tags/json.njk b/src/feeds/tags/json.njk index b29238c..693cc2e 100644 --- a/src/feeds/tags/json.njk +++ b/src/feeds/tags/json.njk @@ -30,7 +30,7 @@ eleventyImport: "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %}, "date_published": "{{ post.date | dateToRfc3339 }}", "tags": {{ post.data.tags | except("posts") | json | safe }}, - "summary": "{{ post | excerpt }}" + "summary": {{ post | excerpt | json | safe }} } {% if not loop.last %},{% endif %} {%- endfor %}