Skip to content

Commit

Permalink
fix: convert URLs in post content
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Oliver Meiert <[email protected]>
  • Loading branch information
j9t committed Jun 15, 2021
1 parent f3d8fd8 commit 3d0eefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed/json.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 3d0eefe

Please sign in to comment.