add encoded content to the podcast feed
This commit is contained in:
		
							parent
							
								
									5656cf1743
								
							
						
					
					
						commit
						ae938394ae
					
				@ -39,13 +39,22 @@
 | 
			
		||||
            {{ 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" }}
 | 
			
		||||
                    {{ $cdnUrl := .Site.Params.podcastCdnUrl }}
 | 
			
		||||
                    <p><img src="{{ $cdnUrl }}{{ with .Params.image }}{{.}}{{ end }}"/></p>
 | 
			
		||||
                  {{end}}
 | 
			
		||||
                {{ .Content | safeHTML }}
 | 
			
		||||
                ]]>
 | 
			
		||||
            </content:encoded>
 | 
			
		||||
        </item>
 | 
			
		||||
        {{ end }}
 | 
			
		||||
    </channel>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user