Change RSS description from full .Content to .Summary
authorDarwin <DarwinJS@users.noreply.github.com>
Sat, 25 Mar 2017 21:58:41 +0000 (17:58 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 25 Mar 2017 21:58:41 +0000 (22:58 +0100)
tpl/tplimpl/template_embedded.go

index 77561d42b2885a99c735a0f37e4d659e1d0fc879..2aabe9c9cb9f909fafcd059cf8e7317212566ba9 100644 (file)
@@ -84,7 +84,7 @@ func (t *GoHTMLTemplate) EmbedTemplates() {
       <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}}
       <guid>{{ .Permalink }}</guid>
-      <description>{{ .Content | html }}</description>
+      <description>{{ .Summary | html }}</description>
     </item>
     {{ end }}
   </channel>