prune and tidy the rss feed xml for podcasts
This commit is contained in:
		
							parent
							
								
									0a65c5e7d7
								
							
						
					
					
						commit
						8ac34fb878
					
				@ -21,20 +21,27 @@
 | 
			
		||||
            <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} by {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
			
		||||
            <link>{{ .Permalink }}</link>
 | 
			
		||||
        </image>
 | 
			
		||||
 | 
			
		||||
        <!-- *** ITUNES TAGS *** -->
 | 
			
		||||
        <itunes:category text="Society & Culture">
 | 
			
		||||
            <itunes:category text="Philosophy"/>
 | 
			
		||||
        </itunes:category>
 | 
			
		||||
        <itunes:explicit>No</itunes:explicit>
 | 
			
		||||
        <itunes:type>episodic</itunes:type>
 | 
			
		||||
        <itunes:summary>Philosophy essays, debates, discussions, and other explorations.</itunes:summary>
 | 
			
		||||
        <itunes:image href="{{ .Site.BaseURL }}img/avatar.png"/>
 | 
			
		||||
        <itunes:owner>
 | 
			
		||||
            <itunes:name>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} by {{ end }}{{ .Site.Title }}{{ end }}</itunes:name>
 | 
			
		||||
            <itunes:email>{{ .Site.Params.email }}</itunes:email>
 | 
			
		||||
        </itunes:owner>
 | 
			
		||||
        <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
 | 
			
		||||
        <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
 | 
			
		||||
        <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
 | 
			
		||||
        <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
 | 
			
		||||
        <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
 | 
			
		||||
        <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
 | 
			
		||||
        <!-- /// END ITUNES TAGS /// -->
 | 
			
		||||
 | 
			
		||||
        <generator>Hugo -- gohugo.io</generator>
 | 
			
		||||
        {{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
 | 
			
		||||
        {{ with .Site.Author.email }}<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}
 | 
			
		||||
        {{ with .Site.Author.email }}<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
 | 
			
		||||
        {{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
 | 
			
		||||
        {{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
 | 
			
		||||
        {{- with .OutputFormats.Get "RSS" -}}
 | 
			
		||||
        {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
 | 
			
		||||
        {{- end -}}
 | 
			
		||||
@ -53,14 +60,12 @@
 | 
			
		||||
            <enclosure url="{{ $.Site.Params.podcastCdnURL }}{{ . }}" type="audio/mpeg"/>
 | 
			
		||||
            {{ end }}
 | 
			
		||||
            {{ end }}
 | 
			
		||||
 | 
			
		||||
            <description>
 | 
			
		||||
                {{`<![CDATA[ ` | safeHTML }}
 | 
			
		||||
                {{ if isset .Params "image" }}<p><img src="{{ .Site.Params.podcastCdnURL }}{{ with .Params.image }}{{.}}{{ end }}" width="600" height="338" /></p>{{end}}
 | 
			
		||||
                {{ .Summary | safeHTML }}
 | 
			
		||||
                ]]>
 | 
			
		||||
            </description>
 | 
			
		||||
 | 
			
		||||
            <content:encoded>
 | 
			
		||||
                {{`<![CDATA[ ` | safeHTML }}
 | 
			
		||||
                  {{ if isset .Params "image" }}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user