Convert YT links in feed to embeds

This commit is contained in:
Devon Campbell 2023-07-28 22:53:14 -05:00
commit f8a2d73280
2 changed files with 12 additions and 5 deletions

View file

@ -32,7 +32,7 @@ metadata:
<link>{{ item.data.relativeUrl | absoluteUrl(metadata.url)}}</link>
<pubDate>{{ item.date | stringToDate | dateToRfc822 }}</pubDate>
<guid isPermaLink="false">{{ item.date | stringToDate | dateToRfc822 }}</guid>
<description>{{ item.templateContent | htmlToAbsoluteUrls(metadata.url) }}</description>
<description>{{ item.content | htmlToAbsoluteUrls(metadata.url) | convertYouTubeURLsToEmbeds }}</description>
</item>
{%- endfor -%}