16 lines
580 B
JavaScript
16 lines
580 B
JavaScript
const {seasonEpisodeFormat} = require('./../../filters/utils');
|
|
|
|
module.exports = {
|
|
"layout": "episode",
|
|
"tags":['episode'],
|
|
"eleventyComputed": {
|
|
"episode": "{{page.fileSlug | episodeNumber: episode}}",
|
|
"image": "{{page.url}}/../image.jpg",
|
|
"podcast": (data) => {
|
|
return {
|
|
"enclosureUrl": data.podcast.url ||`${data.site.cdn}/${seasonEpisodeFormat(null, data)}.mp3`,
|
|
"title": data.podcast.title || `${seasonEpisodeFormat(null, data)}: ${data.title}`,
|
|
"image" : data.podcast.image || data.image || "{{page.url}}/../image.jpg"
|
|
}}
|
|
}
|
|
} |