fix: convert URLs in post content

Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
master
Jens Oliver Meiert 2021-06-15 10:45:29 +02:00
parent f3d8fd87eb
commit 3d0eefe897
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ eleventyExcludeFromCollections: true
"id": "{{ absolutePostUrl }}",
"url": "{{ absolutePostUrl }}",
"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 }}"
}
{%- if not loop.last -%}