664b58187482
Fix the feed, for now.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Sun, 20 Jun 2010 15:40:48 -0400 |
parents | d472b802f5c8 |
children | 33ed0f14a8d7 |
branches/tags | (none) |
files | layout/skeleton/_atom.xml settings.py |
Changes
--- a/layout/skeleton/_atom.xml Fri Jun 18 09:26:19 2010 -0400 +++ b/layout/skeleton/_atom.xml Sun Jun 20 15:40:48 2010 -0400 @@ -19,28 +19,26 @@ <id>{{ site.full_url }}/</id> - {% for node_page in page.node.walk_pages %} - {% ifnotequal node_page page %} - {% if not node_page.listing and not node_page.exclude %} - {% ifnotequal node_page.name ".htaccess" %} - <entry> - <title type="html">{{ node_page.title }}</title> - <author><name>{{ site.author }}</name></author> - <link href="{{ node_page.full_url }}"/> - <updated>{{ node_page.created|xmldatetime }}</updated> - <published>{{ node_page.created|xmldatetime }}</published> - <id>{{ node_page.full_url }}</id> - {% block entry_extra %}{% endblock %} - <content type="html"> - {% filter force_escape %} - {% render_article node_page %} - {% endfilter %} - </content> - </entry> - {% endifnotequal %} - {%endif%} - {%endifnotequal%} + {% recent_posts recents 4 page.blog_node %} + + {% for post in recents %} + {% if not post.listing and not post.exclude %} + <entry> + <title type="html">{{ post.title }}</title> + <author><name>{{ site.author }}</name></author> + <link href="{{ post.full_url }}"/> + <updated>{{ post.created|xmldatetime }}</updated> + <published>{{ post.created|xmldatetime }}</published> + <id>{{ post.full_url }}</id> + {% block entry_extra %}{% endblock %} + <content type="html"> + {% filter force_escape %} + {% render_article post %} + {% endfilter %} + </content> + </entry> + {% endif %} {% endfor %} </feed> -{% endspaceless %} \ No newline at end of file +{% endspaceless %}
--- a/settings.py Fri Jun 18 09:26:19 2010 -0400 +++ b/settings.py Sun Jun 20 15:40:48 2010 -0400 @@ -57,6 +57,12 @@ 'projects': { 'hydeengine.site_pre_processors.CategoriesManager': {}, }, + '/': { + 'hydeengine.site_pre_processors.NodeInjector' : { + 'variable': 'blog_node', + 'path': 'content/blog', + } + } } SITE_POST_PROCESSORS = {