Fixing JSON feed
Build and copy to prod / build-and-copy (push) Successful in 2m13s

This commit is contained in:
Lewis Dale committed 2024-04-29 19:15:50 +01:00
1 parent defc675783
commit 5eab7bcb9d
7 files changed
+49 -7

No files matched your search

+3 -1
View File
@@ -26,7 +26,9 @@
"url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}",
"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 }},
"summary": "{{ post | excerpt }}"
}
{% if not loop.last %},{% endif %}
{%- endfor %}
+3 -1
View File
@@ -28,7 +28,9 @@ eleventyImport:
"url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}",
"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 }},
"summary": "{{ post | excerpt }}"
}
{% if not loop.last %},{% endif %}
{%- endfor %}