Varia's website, varia.zone or vvvvvvaria.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <section id="content" class="index">
  4. <header id="banner">
  5. {% for p in pages %}
  6. {% if p.title == 'header' %}
  7. <div id="title">
  8. {{ p.content }}
  9. </div>
  10. {% endif %}
  11. {% endfor %}
  12. </header>
  13. {% block content_title %}
  14. {% endblock %}
  15. {% if articles_page.has_other_pages() %}
  16. {% include 'pagination.html' %}
  17. {% endif %}
  18. <div id="post-list">
  19. {% for article in articles_page.object_list %}
  20. {% if article.category %}
  21. {% if article.event_start %}
  22. {% set event_status = '' %}
  23. {% set thumb_size = '/thumb' %}
  24. {% if article.event_start < article.date.now() %}
  25. {% set event_status = ' past' %}
  26. {% endif %}
  27. {% if article.event_start >= article.date.now() %}
  28. {% set event_status = ' current' %}
  29. {% set thumb_size = '/thumb2x' %}
  30. {% endif %}
  31. {% endif %}
  32. <article class="hentry {{article.category}}{{event_status}}">
  33. {% endif %}
  34. <div class="article-info">
  35. <span class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
  36. {% if article.event_start %}
  37. <div class="event-details">
  38. {{ article.event_start | strftime('%d %B %Y') }}
  39. <!-- {% set event_status = '' %} -->
  40. </div>
  41. {% endif %}
  42. <div class="featured-image {{event_status}}">
  43. {% if article.featured_image %}
  44. <a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
  45. {% if article.featured_image.endswith('.gif') %}
  46. {% set thumb_size =''%}
  47. {% endif %}
  48. <img src="{{ article.featured_image | replace('images','images'+thumb_size) }}">
  49. </a>
  50. {% endif %}
  51. </div>
  52. </div>
  53. <div class="summary {{ article.category }}">{{ article.summary }}
  54. <span>
  55. {% if DEFAULT_LANG == 'en' %}
  56. <a href="/en/{{ article.url }}">read more</a>
  57. {% elif DEFAULT_LANG == 'nl' %}
  58. <a href="/{{ article.url }}">lees meer</a>
  59. {% endif %}
  60. </span>
  61. </div>
  62. <div class="separator"><hr></div>
  63. <div class="post-info">
  64. {% if article.category %}
  65. <div class="categories">
  66. <span itemprop="articleSection">
  67. <a href="/{{ article.category.url }}" rel="category">{{ article.category }}</a>
  68. </span>
  69. </div>
  70. {% endif %} {% if article.tags %}
  71. <div class="tags">
  72. Tags: {% for tag in article.tags %}
  73. <span itemprop="keywords">
  74. <a href="/{{ tag.url }}" rel="tag">{{ tag }}</a>
  75. </span> {% endfor %}
  76. </div>
  77. {% endif %}
  78. </div>
  79. </article>
  80. {% endfor %}
  81. </div><!-- /#posts-list -->
  82. </section><!-- /#content -->
  83. {% endblock content %}