use JSON.stringify for content

This commit is contained in:
Benji Encalada Mora committed 2020-01-20 01:26:45 -06:00
1 parent fb7383c3ed
commit 12219c480f
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ eleventyExcludeFromCollections: true
"id": "{{ absolutePostUrl }}",
"url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}",
"content_html": "{{ post.templateContent | jsonContent | safe }}",
"content_html": {{ post.templateContent | jsonStringify | safe }},
"date_published": "{{ post.date | rssDate }}",
"tags": [
{%- for c in post.data.category %}