fix: convert URLs in post content
Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
This commit is contained in:
parent
f3d8fd87eb
commit
3d0eefe897
@ -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 -%}
|
||||
|
Loading…
Reference in New Issue
Block a user