post_list_directive.tmpl 465 B

123456789101112131415161718
  1. ## -*- coding: utf-8 -*-
  2. <%block name="content">
  3. <!-- Begin post-list ${post_list_id} -->
  4. <div id="${post_list_id}" class="post-list">
  5. %if posts:
  6. <ul class="post-list">
  7. % for post in posts:
  8. <li class="post-list-item">
  9. ${post.formatted_date(date_format)}
  10. &nbsp;
  11. <a href="${post.permalink(lang)}">${post.title(lang)}</a>
  12. </li>
  13. % endfor
  14. </ul>
  15. %endif
  16. </div>
  17. <!-- End post-list ${post_list_id} -->
  18. </%block>