Change RSS description from full .Content to .Summary - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 1b92c8b713dcaea36516ef86a72a82909c394d78
DIR parent 17b21e0af1e716bdc7f80b0b2b19b5e469344b34
HTML Author: Darwin <DarwinJS@users.noreply.github.com>
Date: Sat, 25 Mar 2017 17:58:41 -0400
Change RSS description from full .Content to .Summary
Diffstat:
M tpl/tplimpl/template_embedded.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
@@ -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>