Mercurial > piecrust2
comparison piecrust/resources/prepare/rss.html @ 532:c3c1171679de 2.0.0b1
prepare: Fix the RSS template.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 29 Jul 2015 08:58:51 -0700 |
parents | f485ba500df3 |
children |
comparison
equal
deleted
inserted
replaced
531:63ae5eae90ca | 532:c3c1171679de |
---|---|
21 {% if page.description %} | 21 {% if page.description %} |
22 <description>{{page.description}}</description> | 22 <description>{{page.description}}</description> |
23 {% else %} | 23 {% else %} |
24 <description>Latest news from {{site.title}}</description> | 24 <description>Latest news from {{site.title}}</description> |
25 {% endif %} | 25 {% endif %} |
26 <lastBuildDate>{{now|date("r")}}</lastBuildDate> | 26 <lastBuildDate>{{now|atomdate}}</lastBuildDate> |
27 <pubDate>{{now|date("r")}}</pubDate> | 27 <pubDate>{{now|atomdate}}</pubDate> |
28 <generator>PieCrust {{piecrust.version}}</generator> | 28 <generator>PieCrust {{piecrust.version}}</generator> |
29 {% if page.language %}<language>{{page.language}}</language>{% endif %} | 29 {% if page.language %}<language>{{page.language}}</language>{% endif %} |
30 {% for c in page.categories %} | 30 {% for c in page.categories %} |
31 <category>{{c}}</category> | 31 <category>{{c}}</category> |
32 {% endfor %} | 32 {% endfor %} |
44 {% endif %} | 44 {% endif %} |
45 {% if post.category %}<category>{{post.category}}</category>{% endif %} | 45 {% if post.category %}<category>{{post.category}}</category>{% endif %} |
46 {% for t in post.tags %} | 46 {% for t in post.tags %} |
47 <category>{{t}}</category> | 47 <category>{{t}}</category> |
48 {% endfor %} | 48 {% endfor %} |
49 <pubDate>{{post.timestamp|date("r")}}</pubDate> | 49 <pubDate>{{post.timestamp|atomdate}}</pubDate> |
50 <guid>{{post.url}}</guid> | 50 <guid>{{post.url}}</guid> |
51 <description>{{post.content}} | 51 <description>{{post.content}} |
52 {% if post.has_more and page.read_more_text %} | 52 {% if post.has_more and page.read_more_text %} |
53 {{ ("<a href=\"" ~ post.url ~ "\">" ~ page.read_more_text ~ "</a>")|escape }} | 53 {{ ("<a href=\"" ~ post.url ~ "\">" ~ page.read_more_text ~ "</a>")|escape }} |
54 {% endif %} | 54 {% endif %} |