Change RSS description from full .Content to .Summary

This commit is contained in:
Darwin 2017-03-25 17:58:41 -04:00 committed by Bjørn Erik Pedersen
parent 17b21e0af1
commit 1b92c8b713

View file

@ -84,7 +84,7 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description> <description>{{ .Summary | html }}</description>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>