Skip to content

Commit

Permalink
Fix the feed, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Jun 20, 2010
1 parent 86315cd commit 15c2aef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
42 changes: 20 additions & 22 deletions layout/skeleton/_atom.xml
Expand Up @@ -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 %}
{% endspaceless %}
6 changes: 6 additions & 0 deletions settings.py
Expand Up @@ -57,6 +57,12 @@
'projects': {
'hydeengine.site_pre_processors.CategoriesManager': {},
},
'/': {
'hydeengine.site_pre_processors.NodeInjector' : {
'variable': 'blog_node',
'path': 'content/blog',
}
}
}

SITE_POST_PROCESSORS = {
Expand Down

0 comments on commit 15c2aef

Please sign in to comment.