fix: convert URLs in post content
Signed-off-by: Jens Oliver Meiert <jens@meiert.com>
This commit is contained in:
parent
f3d8fd87eb
commit
3d0eefe897
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue