Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>

Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Aug 29, 2020
1 parent caa7eec commit ff5b1a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Graphical user interface influencer value proposition startup hackathon iPad ana
|--------------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `Description` | Yes | The description of the episode, which is used on summary pages as well as the feed. Markdown is allowed, but only links. | "Bootstrapping alpha seed money scrum project. Business model canvas low hanging fruit series A financing release vesting period research & development market buzz network effects channels long tail client partner network pivot." |
| `aliases` | No | Other aliases for this episode. You may wish to create an alias to the episode number, etc. | ["/12"] |
| `hosts` | No | The hosts of the episode, based upon the base filename | "[mstratton, thess]" |
| `hosts` | No | The hosts of the episode, based upon the base filename | "[mstratton, thess]" |
| `date` | Yes | The release date of the episode. The `hugo new` episode will pre-populate this, but you may want to adjust it. | "2016-09-25T04:10:01-05:00" |
| `episode` | No | The episode number. This is used in the Apple Podcasts tags of the feed. | "12" |
| `episode_image` | Yes | The square thumbnail to represent the episode. A default image is provided, and the archetype will pre-populate it. This image needs to be relative to your baseURL. | "img/episode/default.jpg" |
Expand All @@ -279,6 +279,7 @@ Graphical user interface influencer value proposition startup hackathon iPad ana
| `podcast_file` | Yes | The filename of your episode, relative to the `media_prefix` of your config.toml. | `"arrested-devops-podcast-episode053.mp3"` |
| `podcast_bytes` | No | The length of the podcast file in bytes. This is optional, but Apple Podcasts and many other podcast players prefer this to be set. | "23907533" |
| `Title` | Yes | The title of the episode. | "Back to School" |
| `subtitle` | No | The subtitle of the episode. Only used in the `itunes:subtitle` tag. If this field doesn't exist, the value of Description will be used. Truncated at 243 characters due to a 255 character limit. | "Back to School" |
| `youtube` | No | The ID of the YouTube video (not the full URL). This will display the video on the episode page, and if you are using the row layout, it will display for the latest episode. | "8ClZXJsgpHY" |
| `truncate` | No | The number of characters to truncate the summary on the row layout.. The default value (if not set) is 600 characters. | "700" |
| `guid` | No | A fixed, globally unique identifier for the episode which should never change. If one is not specified the URL of the `podcast_file` will be used instead. | "aae20190418" |
Expand Down
7 changes: 7 additions & 0 deletions layouts/section/episode.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@
<itunes:episode>{{ . }}</itunes:episode>
{{ end }}
<itunes:title>{{ title .Title }}</itunes:title>
{{"<itunes:subtitle><![CDATA[" | safeHTML }}
{{ with .Params.subtitle }}
{{ . | plainify | truncate 243 "..." }}
{{ else }}
{{ .Description | plainify | truncate 243 "..." }}
{{ end }}
{{"]]></itunes:subtitle>" | safeHTML}}
<itunes:summary>{{ .Description | plainify }}</itunes:summary>
<description>{{ .Description | plainify }}</description>
<googleplay:description>{{ .Description | plainify }}</googleplay:description>
Expand Down

0 comments on commit ff5b1a4

Please sign in to comment.