add full encoded content to the rss feeds for the blog
This commit is contained in:
		
							parent
							
								
									dd506baf76
								
							
						
					
					
						commit
						902b9d144f
					
				@ -11,7 +11,7 @@
 | 
				
			|||||||
{{- $pages = $pages | first $limit -}}
 | 
					{{- $pages = $pages | first $limit -}}
 | 
				
			||||||
{{- end -}}
 | 
					{{- end -}}
 | 
				
			||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
					{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
				
			||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
 | 
				
			||||||
    <channel>
 | 
					    <channel>
 | 
				
			||||||
        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
					        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
				
			||||||
        <link>{{ .Permalink }}</link>
 | 
					        <link>{{ .Permalink }}</link>
 | 
				
			||||||
@ -56,6 +56,17 @@
 | 
				
			|||||||
                {{ .Summary | safeHTML }}
 | 
					                {{ .Summary | safeHTML }}
 | 
				
			||||||
                ]]>
 | 
					                ]]>
 | 
				
			||||||
            </description>
 | 
					            </description>
 | 
				
			||||||
 | 
					            <content:encoded>
 | 
				
			||||||
 | 
					                {{`<![CDATA[ ` | safeHTML }}
 | 
				
			||||||
 | 
					                  {{ if isset .Params "image" }}
 | 
				
			||||||
 | 
					                    {{ $cdnUrl := .Site.Params.blogCdnUrl }}
 | 
				
			||||||
 | 
					                    <p><img src="{{ $cdnUrl }}{{ with .Params.image }}{{.}}{{ end }}"/></p>
 | 
				
			||||||
 | 
					                  {{end}}
 | 
				
			||||||
 | 
					                {{ .Content | safeHTML }}
 | 
				
			||||||
 | 
					                ]]>
 | 
				
			||||||
 | 
					            </content:encoded>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        </item>
 | 
					        </item>
 | 
				
			||||||
        {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
    </channel>
 | 
					    </channel>
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
{{- $pages = $pages | first $limit -}}
 | 
					{{- $pages = $pages | first $limit -}}
 | 
				
			||||||
{{- end -}}
 | 
					{{- end -}}
 | 
				
			||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
					{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
				
			||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
 | 
				
			||||||
    <channel>
 | 
					    <channel>
 | 
				
			||||||
        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
					        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
				
			||||||
        <link>{{ .Permalink }}</link>
 | 
					        <link>{{ .Permalink }}</link>
 | 
				
			||||||
 | 
				
			|||||||
@ -11,7 +11,7 @@
 | 
				
			|||||||
{{- $pages = $pages | first $limit -}}
 | 
					{{- $pages = $pages | first $limit -}}
 | 
				
			||||||
{{- end -}}
 | 
					{{- end -}}
 | 
				
			||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
					{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
 | 
				
			||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 | 
					<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
 | 
				
			||||||
    <channel>
 | 
					    <channel>
 | 
				
			||||||
        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
					        <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
 | 
				
			||||||
        <link>{{ .Permalink }}</link>
 | 
					        <link>{{ .Permalink }}</link>
 | 
				
			||||||
@ -53,6 +53,15 @@
 | 
				
			|||||||
                {{ .Summary | safeHTML }}
 | 
					                {{ .Summary | safeHTML }}
 | 
				
			||||||
                ]]>
 | 
					                ]]>
 | 
				
			||||||
            </description>
 | 
					            </description>
 | 
				
			||||||
 | 
					            <content:encoded>
 | 
				
			||||||
 | 
					                {{`<![CDATA[ ` | safeHTML }}
 | 
				
			||||||
 | 
					                  {{ if isset .Params "image" }}
 | 
				
			||||||
 | 
					                    {{ $cdnUrl := .Site.Params.blogCdnUrl }}
 | 
				
			||||||
 | 
					                    <p><img src="{{ $cdnUrl }}{{ with .Params.image }}{{.}}{{ end }}"/></p>
 | 
				
			||||||
 | 
					                  {{end}}
 | 
				
			||||||
 | 
					                {{ .Content | safeHTML }}
 | 
				
			||||||
 | 
					                ]]>
 | 
				
			||||||
 | 
					            </content:encoded>
 | 
				
			||||||
        </item>
 | 
					        </item>
 | 
				
			||||||
        {{ end }}
 | 
					        {{ end }}
 | 
				
			||||||
    </channel>
 | 
					    </channel>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user