Merge pull request #104 from j9t/master
fix: convert URLs in post content
This commit is contained in:
commit
dd1b821a8b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue