Skip to content

Commit

Permalink
Truncate iTunes summary to 4000 characters
Browse files Browse the repository at this point in the history
Fixes #93
  • Loading branch information
mattstratton committed May 31, 2017
1 parent 2958237 commit 149f5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/section/episode.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>{{ .Site.Title }}</title>
<title>{{ $.Site.Title }}</title>
<atom:link href="{{ "episode/index.xml" | absURL }}" rel="self" type="application/rss+xml" />
<link>{{ .Site.BaseURL }}</link>
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
Expand All @@ -18,8 +18,8 @@
<copyright>{{ .Site.Params.feed_copyright }}</copyright>
{{ with .Site.Params.feed.itunes_subtitle }}<itunes:subtitle>{{ . }}</itunes:subtitle>{{ end }}
<itunes:author>{{ .Site.Params.feed.itunes_author }}</itunes:author>
<itunes:summary>{{ .Site.Params.feed.itunes_summary }}</itunes:summary>
<description>{{ .Site.Params.feed.itunes_summary }}</description>
<itunes:summary>{{ .Site.Params.feed.itunes_summary | truncate 4000 ""}}</itunes:summary>
<description>{{ .Site.Params.feed.itunes_summary | truncate 4000 ""}}</description>
<itunes:owner>
<itunes:name>{{ .Site.Params.feed.itunes_owner_name }}</itunes:name>
<itunes:email>{{ .Site.Params.feed.itunes_owner_email }}</itunes:email>
Expand Down

0 comments on commit 149f5bf

Please sign in to comment.