-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog.opds
55 lines (52 loc) · 1.8 KB
/
catalog.opds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:fh="http://purl.org/syndication/history/1.0"
xmlns:opds="http://opds-spec.org/2010/catalog">
<author>
<name>{{ site.author }}</name>
</author>
<id>{{ site.canonical }}</id>
<link href="{{ site.canonical }}/catalog.opds"
rel="self"
type="application/atom+xml;profile=opds-catalog;kind=acquisition"/>
<title>{{ site.title }}</title>
<subtitle>{{ site.tagline }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<dc:date>{{ site.time | date_to_xmlschema }}</dc:date>
<dcterms:date>{{ site.time | date_to_xmlschema }}</dcterms:date>
{% for post in site.posts %}
<entry>
<id>{{ site.canonical}}/{{ post.url }}</id>
<link rel="http://opds-spec.org/acquisition"
type="application/epub+zip"
href="{{ site.canonical}}/{{ post.url | remove:'.html' }}.epub"/>
{% if post.cover %}
<link rel="http://opds-spec.org/image"
type="image/png"
href="{{ post.cover }}" />
<link rel="http://opds-spec.org/thumbnail"
type="image/png"
href="{{ post.cover }}" />
{% endif %}
{% if post.license %}
<link rel="license"
type="text/html"
href="{{ post.license }}"/>
{% endif %}
<author>
<name>{{ post.author }}</name>
</author>
<dc:language>es</dc:language>
<title>{{ post.title }}</title>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<dc:date>{{ post.date | date_to_xmlschema }}</dc:date>
<dcterms:date>{{ post.date | date_to_xmlschema }}</dcterms:date>
<dc:issued>{{ post.date | date: '%Y-%m-%d' }}</dc:issued>
</entry>
{% endfor %}
</feed>