update layouts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user