Fix my broken JSON, again
Build and copy to prod / build-and-copy (push) Successful in 2m7s

This commit is contained in:
Lewis Dale committed 2024-04-30 11:37:29 +01:00
1 parent d361ad2ea7
commit bdaf43ad16
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 %}
+1 -1
View File
@@ -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 %}