update layouts

This commit is contained in:
2024-11-11 15:20:03 -06:00
parent b0bede183b
commit 2e26dd2000
3 changed files with 2 additions and 130 deletions

View File

@@ -29,7 +29,7 @@ class PodcastFeed {
description: data.description,
feedUrl: `${data.site.url}${data.page.filePathStem}.xml`,
siteUrl: data.site.url,
imageUrl: 'http://example.com/icon.png',
imageUrl: data.site.imageUrl || `${data.site.url}${data.page.filePathStem}.jpg`,
author: data.author || `${data.site.author.name}`,
copyright: data.copyright || `${new Date().getFullYear()} ${data.site.author.name}`,
language: 'en',
@@ -45,7 +45,7 @@ class PodcastFeed {
},
itunesExplicit: data.itunes?.explicit || false,
itunesCategory: [],
itunesImage: data.itunes?.image || 'http://example.com/image.png'
itunesImage: data.itunes?.image || data.site.imageUrl || `${data.site.url}${data.page.filePathStem}.jpg`
});
const episodes = data.collections.episode.filter(episode=>episode.data.podcast==true)