Mercurial > hg > bitsyblog
annotate bitsyblog/templates/atom.xml @ 132:bda88f101ba9
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 28 Dec 2020 20:49:32 +0000 |
parents | 7e7fbdc64cc1 |
children |
rev | line source |
---|---|
35
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="utf-8"?> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
2 <feed xmlns="http://www.w3.org/2005/Atom" |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
3 xmlns:py="http://genshi.edgewall.org/"> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
5 <py:choose test="bool(author)"> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
6 <py:when test="True"> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
7 <title>${author}'s blog</title> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
8 <link href="${user_url(request, author)}"/> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
9 </py:when> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
10 |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
11 <py:otherwise> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
12 <title>${site_name} - atom</title> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
13 <link href="${request.application_url}"/> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
14 </py:otherwise> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
15 </py:choose> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
16 |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
17 <updated>${date}</updated> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
18 |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
19 <entry py:for="entry in blog"> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
20 <title>${entry.title()}</title> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
21 <link href="${permalink(request, entry)}"/> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
22 <updated>${entry.date.isoformat()}</updated> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
23 <summary>${entry.body}</summary> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
24 </entry> |
7e7fbdc64cc1
enable atom support, this brings us to 2.0
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
25 </feed> |