mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-25 12:12:18 +00:00
don't write empty categories to rss
This commit is contained in:
parent
b9926cb5b3
commit
bd4f26e1c6
1 changed files with 3 additions and 3 deletions
|
@ -35,10 +35,10 @@
|
|||
<title>{{ .Title | plainify }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Params.Author.name }}<dc:creator>{{.}}</dc:creator>{{end}}
|
||||
<category>{{ .Params.series | lower }}</category>
|
||||
{{ with .Site.Params.Author.name }}<dc:creator>{{.}}</dc:creator>{{ end }}
|
||||
{{ with .Params.series }}<category>{{ . | lower }}</category>{{ end }}
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<category>{{ .LinkTitle }}</category>{{end}}
|
||||
<category>{{ .LinkTitle }}</category>{{ end }}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Summary | plainify }}</description>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue