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.
@@ -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}/`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-podcaster",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "An Eleventy plugin that allows you to create a podcast and its accompanying website",
5
5
  "main": "eleventy.config.js",
6
6
  "exports": {