use JSON.stringify for content

This commit is contained in:
Benji Encalada Mora
2020-01-20 01:26:45 -06:00
parent fb7383c3ed
commit 12219c480f
2 changed files with 5 additions and 7 deletions

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 %}