index.html 1.0 KB

1234567891011121314151617181920212223
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <section id="content">
  4. {% block content_title %}
  5. <h2>All articles</h2>
  6. {% endblock %}
  7. <ol id="post-list">
  8. {% for article in articles_page.object_list %}
  9. <li><article class="hentry">
  10. <header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> </header>
  11. <footer class="post-info">
  12. <abbr class="published" title="{{ article.date.isoformat() }}"> {{ article.locale_date }} </abbr>
  13. {% if article.author %}<address class="vcard author">By <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a></address>{% endif %}
  14. </footer><!-- /.post-info -->
  15. <div class="entry-content"> {{ article.summary }} </div><!-- /.entry-content -->
  16. </article></li>
  17. {% endfor %}
  18. </ol><!-- /#posts-list -->
  19. {% include 'pagination.html' %}
  20. </section><!-- /#content -->
  21. {% endblock content %}