# HG changeset patch # User Steve Losh # Date 1277062848 14400 # Node ID 664b58187482a60d47463acf72cea155bf6a7caf # Parent d472b802f5c81178af396f02dbf023505e2daba5 Fix the feed, for now. diff -r d472b802f5c8 -r 664b58187482 layout/skeleton/_atom.xml --- 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 @@ {{ site.full_url }}/ - {% 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" %} - - {{ node_page.title }} - {{ site.author }} - - {{ node_page.created|xmldatetime }} - {{ node_page.created|xmldatetime }} - {{ node_page.full_url }} - {% block entry_extra %}{% endblock %} - - {% filter force_escape %} - {% render_article node_page %} - {% endfilter %} - - - {% endifnotequal %} - {%endif%} - {%endifnotequal%} + {% recent_posts recents 4 page.blog_node %} + + {% for post in recents %} + {% if not post.listing and not post.exclude %} + + {{ post.title }} + {{ site.author }} + + {{ post.created|xmldatetime }} + {{ post.created|xmldatetime }} + {{ post.full_url }} + {% block entry_extra %}{% endblock %} + + {% filter force_escape %} + {% render_article post %} + {% endfilter %} + + + {% endif %} {% endfor %} -{% endspaceless %} \ No newline at end of file +{% endspaceless %} diff -r d472b802f5c8 -r 664b58187482 settings.py --- 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 = {