Rename author to authors and subject to tags

This commit is contained in:
Las Zenow 2016-07-30 07:36:58 -04:00
parent e72de38725
commit 7f9c172853
17 changed files with 37 additions and 39 deletions

View file

@ -14,14 +14,14 @@
{{$baseURL := .S.BaseURL}}
{{range .Books}}
<item>
<title>{{.Title}} - {{index .Author 0}}</title>
<title>{{.Title}} - {{index .Authors 0}}</title>
<description>{{.Description}}</description>
<link>{{$baseURL}}/book/{{.Id}}</link>
{{if .Isbn}}
<guid isPermaLink="false">ISBN: {{.Isbn}}</guid>
{{end}}
<enclosure url="{{$baseURL}}/download/{{.Id}}/{{.Title}}.epub" length="{{.FileSize}}" type="application/epub+zip" />
{{range .Subject}}
{{range .Authors}}
{{if .}}
<category>{{.}}</category>
{{end}}