eleventy-plugin-podcaster 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -45,3 +45,6 @@ Detailed and specific information about how to install and use **Podcaster** can
45
45
  **Podcaster** is an Eleventy plugin. You install it in your config file in the usual way. You usually provide it with information about your podcast — like its title, description and category — by creating a `podcast.json` file in the data directory. For each episode, you create a template with information in the front matter about that episode — its name, release date, filename, duration and so on.
46
46
 
47
47
  Once you do this, **Podcaster** can create the RSS feed for your podcast. You can also create templates for various pages on your website and include on those pages the information you have provided about the podcast and its episodes.
48
+
49
+ > [!WARNING]
50
+ > **Podcaster** only works with Node 20 and later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eleventy-plugin-podcaster",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
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": {
@@ -50,6 +50,9 @@ eleventyAllowMissingExtension: true
50
50
  {% for post in collections.podcastEpisode | reverse %}
51
51
  <item>
52
52
  <title>{{ post.data.episode.title or post.data.title }}</title>
53
+ {% if post.data.episode.itunesTitle %}
54
+ <itunes:title>{{ post.data.episode.itunesTitle }}</title>
55
+ {%- endif %}
53
56
  <link>{{ post.url | htmlBaseUrl(siteUrl) }}</link>
54
57
  {%- if post.data.guid != undefined %}
55
58
  <guid isPermalink="false">{{ post.data.guid }}</guid>
@@ -64,7 +67,7 @@ eleventyAllowMissingExtension: true
64
67
  {% elif post.data.episode.description %}
65
68
  {%- set episodeDescription = post.data.episode.description -%}
66
69
  {% else %}
67
- {%- set episodeDescription = post.content | striptags(true) | truncate(800) -%}
70
+ {%- set episodeDescription = post.content | safe | striptags(true) | truncate(800) -%}
68
71
  {%- endif %}
69
72
  <description>{{ episodeDescription | trim }}</description>
70
73
  <itunes:summary>{{ episodeDescription | trim }}</itunes:summary>