Add image to feed

This commit is contained in:
Aaron Fischer 2021-05-06 22:45:58 +02:00
parent 9aca3f777b
commit 65caff3121
2 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,12 @@
<link href="https://mojoreads.de/book/?isbn={{ .ISBN }}&amp;ref=mezzo&amp;aff=mr"/> <link href="https://mojoreads.de/book/?isbn={{ .ISBN }}&amp;ref=mezzo&amp;aff=mr"/>
<id>urn:uuid:{{ .ISBN }}</id> <id>urn:uuid:{{ .ISBN }}</id>
<updated>{{ .Date }}T00:00:00Z</updated> <updated>{{ .Date }}T00:00:00Z</updated>
<summary>{{ .Author | html }} - "{{ .Title | html }}"</summary> <summary>{{ .Author | html }} - "{{ .Title | html }}</summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<img src="https://buchdesmonats.okoyono.de/covers/{{ .ISBN }}.jpg"/>
</div>
</content>
</entry> </entry>
{{ end }} {{ end }}
</feed> </feed>

View file

@ -16,6 +16,11 @@
<id>urn:uuid:{{ .ISBN }}</id> <id>urn:uuid:{{ .ISBN }}</id>
<updated>{{ .Date }}T00:00:00Z</updated> <updated>{{ .Date }}T00:00:00Z</updated>
<summary>{{ .Author | html }} - "{{ .Title | html }}"</summary> <summary>{{ .Author | html }} - "{{ .Title | html }}"</summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<img src="https://comicdesmonats.okoyono.de/covers/{{ .ISBN }}.jpg"/>
</div>
</content>
</entry> </entry>
{{ end }} {{ end }}