|
1 | 1 | {% import "macros.html" as macros %} |
2 | 2 | <?xml version="1.0" encoding="utf-8"?> |
3 | 3 | <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> |
4 | | - <generator uri="https://blog.rust-lang.org/{{blog.prefix}}" version="0.1.0">{{blog.title}}</generator> |
5 | | - <link href="https://blog.rust-lang.org/{{blog.prefix}}feed.xml" rel="self" type="application/atom+xml" /> |
6 | | - <link href="https://blog.rust-lang.org/{{blog.prefix}}" rel="alternate" type="text/html" /> |
7 | | - <id>https://blog.rust-lang.org/{{blog.prefix}}</id> |
8 | | - <title>{{blog.title}}</title> |
9 | | - <subtitle>{{blog.description}}</subtitle> |
| 4 | + <generator uri="https://blog.rust-lang.org/{{ section.prefix }}" version="0.1.0">{{ section.title }}</generator> |
| 5 | + <link href="https://blog.rust-lang.org/{{ section.prefix }}feed.xml" rel="self" type="application/atom+xml" /> |
| 6 | + <link href="https://blog.rust-lang.org/{{ section.prefix }}" rel="alternate" type="text/html" /> |
| 7 | + <id>https://blog.rust-lang.org/{{ section.prefix }}</id> |
| 8 | + <title>{{ section.title }}</title> |
| 9 | + <subtitle>{{ section.description }}</subtitle> |
10 | 10 | <author> |
11 | | - <name>Maintained by {{blog.maintained_by}}.</name> |
| 11 | + <name>Maintained by {{ section.maintained_by }}.</name> |
12 | 12 | <uri>https://github.com/rust-lang/blog.rust-lang.org/</uri> |
13 | 13 | </author> |
14 | 14 | <updated>{{feed_updated}}</updated> |
15 | 15 |
|
16 | | - {% for post in posts %} |
| 16 | + {% for page in posts %} |
17 | 17 | <entry> |
18 | | - <title>{{ macros::escape_hbs(input=post.title) }}</title> |
19 | | - <link rel="alternate" href="https://blog.rust-lang.org/{{blog.prefix}}{{ macros::escape_hbs(input=post.url) }}" type="text/html" title="{{ macros::escape_hbs(input=post.title) }}" /> |
20 | | - <published>{{ macros::escape_hbs(input=post.published) }}</published> |
21 | | - <updated>{{ macros::escape_hbs(input=post.updated) }}</updated> |
22 | | - <id>https://blog.rust-lang.org/{{blog.prefix}}{{ macros::escape_hbs(input=post.url) }}</id> |
23 | | - <content type="html" xml:base="https://blog.rust-lang.org/{{blog.prefix}}{{ macros::escape_hbs(input=post.url) }}">{{ macros::escape_hbs(input=post.contents) }}</content> |
| 18 | + <title>{{ macros::escape_hbs(input=page.title) }}</title> |
| 19 | + <link rel="alternate" href="https://blog.rust-lang.org/{{ section.prefix }}{{ macros::escape_hbs(input=page.url) }}" type="text/html" title="{{ macros::escape_hbs(input=page.title) }}" /> |
| 20 | + <published>{{ macros::escape_hbs(input=page.published) }}</published> |
| 21 | + <updated>{{ macros::escape_hbs(input=page.updated) }}</updated> |
| 22 | + <id>https://blog.rust-lang.org/{{ section.prefix }}{{ macros::escape_hbs(input=page.url) }}</id> |
| 23 | + <content type="html" xml:base="https://blog.rust-lang.org/{{ section.prefix }}{{ macros::escape_hbs(input=page.url) }}">{{ macros::escape_hbs(input=page.contents) }}</content> |
24 | 24 |
|
25 | 25 | <author> |
26 | | - <name>{{ macros::escape_hbs(input=post.author) }}</name> |
| 26 | + <name>{{ macros::escape_hbs(input=page.author) }}</name> |
27 | 27 | </author> |
28 | 28 | </entry> |
29 | 29 | {%- endfor %} |
|
0 commit comments