Add basic html/rss support for book lists
This commit is contained in:
parent
c0a70a18e1
commit
46762ea17b
11 changed files with 254 additions and 78 deletions
14
templates/list.rss
Normal file
14
templates/list.rss
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{{.S.Title}}</title>
|
||||
<description>{{range .List.Description}}
|
||||
{{.}}
|
||||
{{end}}</description>
|
||||
<link>{{.S.BaseURL}}/list/{{.List.ListID}}</link>
|
||||
<managingEditor>{{.List.User.Username}}</managingEditor>
|
||||
|
||||
{{template "book_list.rss" book_list .List.Books .S.BaseURL}}
|
||||
|
||||
</channel>
|
||||
</rss>
|
Reference in a new issue