eleventy-plugin-podcaster 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eleventy.config.js +2 -0
- package/package.json +1 -1
package/eleventy.config.js
CHANGED
|
@@ -119,6 +119,8 @@ export default function (eleventyConfig, options = {}) {
|
|
|
119
119
|
if (options.handleEpisodePermalinks) {
|
|
120
120
|
eleventyConfig.addGlobalData('eleventyComputed.permalink', () => {
|
|
121
121
|
return data => {
|
|
122
|
+
if (data.permalink) return data.permalink
|
|
123
|
+
|
|
122
124
|
if (data.tags?.includes('podcastEpisode')) {
|
|
123
125
|
if (data.episode?.seasonNumber) {
|
|
124
126
|
return `/s${data.episode.seasonNumber}/e${data.episode.episodeNumber}/`
|