Clean up the JSON code a bit (don’t need that extra filter)

This commit is contained in:
Zach Leatherman
2020-07-27 15:02:58 -05:00
parent 2934dae820
commit d3ced37f50
4 changed files with 7 additions and 14 deletions

View File

@ -20,7 +20,7 @@ eleventyExcludeFromCollections: true
"id": "{{ absolutePostUrl }}",
"url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}",
"content_html": {{ post.templateContent | jsonStringify | safe }},
"content_html": {% if post.templateContent %}{{ post.templateContent | dump | safe }}{% else %}""{% endif %},
"date_published": "{{ post.date | rssDate }}",
"tags": [
{%- for c in post.data.category %}