Excerpts do not show

Graeme Pietersz graeme.pietersz at gmail.com
Tue Feb 23 19:50:31 EST 2010


I have been trying to get excerpts by using excerpt.py by adding
excerpt.py to the filters list (with no parameters passed) and putting
this in the Django template:

{% for item in Items %}
{% ifchanged item.channel_name %}
<h1 class="channel"><a href="{{item.channel_link}}">{{
item.channel_name }}</a></h1>
{% endifchanged %}

<div class="entry">
  {% if item.title %}<h1 class="post"><a href="{{item.link}}">{{
item.title }}</a></h1>{% endif %}
<div class="date">{{ item.date }}</div>

  {{ item.excerpt }}

<div class="permalink"><a href="{{ item.link }}">full original post</a></div>
</div>
{% endfor %}

The result is that I get an excerpt only for some feeds, and just the
title and link for others - see http://investmentreads.co.uk/

I have tried passing excerpt.py various targets (planet:content,
atom:content, content), and I have tried changing the property of item
I access in the template. I either end up with will full text again,
or just titltes.


More information about the devel mailing list