Commits

Joseph Tate committed 70f5380

Only show exerpts if there is a body

Comments (0)

Files changed (1)

c5t/core/templates/pages/index.mak

       </td>
     </tr>
     <% thetext = h.strip_tags(page.text) %>
+    % if (thetext is None):
+    <tr><td colspan="6" class="excerpt-td"><strong>Excerpt:</strong> No content</td></tr>
+    % else:
     <tr><td colspan="6" class="excerpt-td"><strong>Excerpt:</strong> ${thetext[0:1000]} ${len(thetext) > 1000 and '...' or ''}</td></tr>
+    %endif
     %endfor
 </table>
 </div>