fix: convert URLs in post content

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
This commit is contained in:
Jens Oliver Meiert 2021-06-15 10:45:29 +02:00
parent f3d8fd87eb
commit 3d0eefe897

View File

@ -21,7 +21,7 @@ eleventyExcludeFromCollections: true
"id": "{{ absolutePostUrl }}", "id": "{{ absolutePostUrl }}",
"url": "{{ absolutePostUrl }}", "url": "{{ absolutePostUrl }}",
"title": "{{ post.data.title }}", "title": "{{ post.data.title }}",
"content_html": {% if post.templateContent %}{{ post.templateContent | dump | safe }}{% else %}""{% endif %}, "content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %},
"date_published": "{{ post.date | rssDate }}" "date_published": "{{ post.date | rssDate }}"
} }
{%- if not loop.last -%} {%- if not loop.last -%}