index.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% extends "base.html" %}
  2. {% block content %}
  3. {{ super() }}
  4. <ul>
  5. {% for article in articles_page.object_list %}
  6. <li>
  7. <div>
  8. <div>
  9. <h2>
  10. <a href="{{ SiteProtoDomainTLD }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
  11. {{ article.title }}
  12. </a>
  13. </h2>
  14. <div>
  15. <span>Post in</span>
  16. <abbr title="{{ article.date.isoformat() }}">
  17. <a href="{{ SiteProtoDomainTLD }}/archive/{{ article.date|strftime('%Y%m%d') }}/{{article.slug}}/">
  18. {{ article.locale_date }}
  19. </a>
  20. </abbr>
  21. <span> | By</span>
  22. {% if article.author %}
  23. <a href="{{ SiteProtoDomainTLD }}/author/{{ article.author|lower() }}/index.html">{{ article.author }}</a>
  24. {% elif AUTHOR %}
  25. <a href="{{ SiteProtoDomainTLD }}/author/{{ AUTHOR }}.html">{{ AUTHOR }}</a>
  26. {% endif %}
  27. <span> | Tags</span>
  28. {% for tag in article.tags %}
  29. <a href="{{ SiteProtoDomainTLD }}/{{ tag.url }}">{{ tag }}</a>
  30. {% endfor %}
  31. </div>
  32. </div>
  33. <div>{{ article.summary }}</div>
  34. <div>
  35. <span>Category:</span>
  36. <abbr>
  37. <a href="{{ SiteProtoDomainTLD }}/{{ article.category.url }}">{{ article.category }}</a>
  38. </abbr>
  39. </div>
  40. <hr />
  41. </div>
  42. </li>
  43. {% endfor %}
  44. </ul>
  45. {% include 'pagination.html' %}
  46. {% endblock content%}