From 3d0eefe897d8dc68bdf510569136073a6115c771 Mon Sep 17 00:00:00 2001 From: Jens Oliver Meiert Date: Tue, 15 Jun 2021 10:45:29 +0200 Subject: [PATCH] fix: convert URLs in post content Signed-off-by: Jens Oliver Meiert --- feed/json.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed/json.njk b/feed/json.njk index 93babae..40bba3c 100644 --- a/feed/json.njk +++ b/feed/json.njk @@ -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 -%}