Mon, 07 Sep 2020 09:15:21 +0300
less verbosity
10
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="utf-8" ?> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
2 | <% |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
3 | require('plugin.inline') |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
4 | require('time') |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
5 | %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
6 | <feed xmlns="http://www.w3.org/2005/Atom"> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
7 | <title type="html"><%= page.meta.title %></title> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
8 | <subtitle type="html"><%= page.meta.description %></subtitle> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
9 | <author> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
10 | <name><%= page.meta.author %></name> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
11 | <uri><%= page.meta.author_url %></uri> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
12 | </author> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
13 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
14 | <% local feedurl = page.meta.site_url..page.destination %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
15 | <link href="<%= page.meta.site_url %>" rel="alternate" type="text/xhtml" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
16 | <link href="<%= feedurl %>" rel="self" type="application/atom+xml" /> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
17 | <updated><%= time.now_iso() %></updated> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
18 | <id><%= page.meta.site_url %></id> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
19 | |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
20 | <%= plugin.inline.inline(env, { |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
21 | pattern=page.meta.dependencies, |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
22 | count=page.meta.count, |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
23 | template='inline_atom.template', |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
24 | absolute=page.meta.site_url, |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
25 | }) |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
26 | %> |
118ab361da29
Added an example website based on http://tuomov.iki.fi/
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
27 | </feed> |