Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Aug 29, 2020
1 parent 39ea418 commit 8a8a5d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 RSS feed in the `itunes:subtitle` tag. If this value is empty/nil, the value from Description will be used. Truncated at 243 characters. | "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
1 change: 1 addition & 0 deletions archetypes/episode.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ episode_image = "img/episode/default.jpg"
#sponsors = []
#episode = ""
title = ""
#subtitle = ""
images = ["img/episode/default-social.jpg"]
#hosts = [] # The names of your hosts, based on the filename without extension.
#aliases = ["/##"]
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 8a8a5d7

Please sign in to comment.