Merge pull request #104 from j9t/master
fix: convert URLs in post content
This commit is contained in:
commit
dd1b821a8b
@ -21,7 +21,7 @@ eleventyExcludeFromCollections: true
|
|||||||
"id": "{{ absolutePostUrl }}",
|
"id": "{{ absolutePostUrl }}",
|
||||||
"url": "{{ absolutePostUrl }}",
|
"url": "{{ absolutePostUrl }}",
|
||||||
"title": "{{ post.data.title }}",
|
"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 }}"
|
"date_published": "{{ post.date | rssDate }}"
|
||||||
}
|
}
|
||||||
{%- if not loop.last -%}
|
{%- if not loop.last -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user