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

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

View File

@ -28,7 +28,7 @@
"content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %}, "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %},
"date_published": "{{ post.date | dateToRfc3339 }}", "date_published": "{{ post.date | dateToRfc3339 }}",
"tags": {{ post.data.tags | except("posts") | json | safe }}, "tags": {{ post.data.tags | except("posts") | json | safe }},
"summary": "{{ post | excerpt }}" "summary": {{ post | excerpt | json | safe }}
} }
{% if not loop.last %},{% endif %} {% if not loop.last %},{% endif %}
{%- endfor %} {%- endfor %}

View File

@ -30,7 +30,7 @@ eleventyImport:
"content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %}, "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %},
"date_published": "{{ post.date | dateToRfc3339 }}", "date_published": "{{ post.date | dateToRfc3339 }}",
"tags": {{ post.data.tags | except("posts") | json | safe }}, "tags": {{ post.data.tags | except("posts") | json | safe }},
"summary": "{{ post | excerpt }}" "summary": {{ post | excerpt | json | safe }}
} }
{% if not loop.last %},{% endif %} {% if not loop.last %},{% endif %}
{%- endfor %} {%- endfor %}