diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2017-06-01 14:59:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 14:59:22 +0300 |
commit | 964cb754a71e4bb3625620afcc93a707eb281877 (patch) | |
tree | 50021b157572b1e32960212763516b9455c3c876 /layouts | |
parent | 2958237974f8566884f0a2bffe97522333130cf7 (diff) | |
parent | 149f5bfe73337a28a966fa2983f75a8d84c4ef8b (diff) |
Merge pull request #108 from mattstratton/issues_93
Truncate iTunes summary to 4000 characters
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/section/episode.rss.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/section/episode.rss.xml b/layouts/section/episode.rss.xml index 0d7305b..8cc977a 100644 --- a/layouts/section/episode.rss.xml +++ b/layouts/section/episode.rss.xml @@ -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> @@ -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> |