nuovo sito fatto con pelican
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.

43 lines
1.4KB

  1. {% extends "index.html" %}
  2. {% block title %}Archivio {{ SITENAME }}{% endblock %}
  3. {% block ogtitle %}Archivio {{ SITENAME }}{% endblock %}
  4. {% block ogurl %}{{ SITEURL }}/archives.html{%endblock%}
  5. {% block canonicalurl %}{{ SITEURL }}/archives.html{%endblock%}
  6. {% block content %}
  7. <div class="span9">
  8. <section>
  9. <h1>{% block content_title %}Archivio per data{% endblock %}</h1>
  10. {% for article in dates %}
  11. {% set this_year = article.date.strftime('%Y') %}
  12. {% if this_year != prev_year %}
  13. <div class="row-fluid archive_row">
  14. <div class="span1 archive_year">{{ this_year }}</div>
  15. </div>
  16. {% endif %}
  17. {% if this_year != prev_year or this_month != prev_month %}
  18. <div class="row-fluid archive_row">
  19. <div class="offset1 span1 archive_month">{{ this_month }}</div>
  20. </div>
  21. {% endif %}
  22. <div class="row-fluid archive_row">
  23. {% if this_month != prev_month or this_day != prev_day %}
  24. <div class="offset1 span1 archive_day">
  25. {{ this_day }}
  26. </div>
  27. {% endif %}
  28. <div class="{% if this_year == prev_year and this_month == prev_month and this_day == prev_day %}offset2 {% endif %}span10">
  29. <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> <small>{{ article.category }}</small></dd>
  30. </div>
  31. </div>
  32. {% set prev_year = this_year %}
  33. {% set prev_month = this_month %}
  34. {% set prev_day = this_day %}
  35. {% endfor %}
  36. </section>
  37. </div>
  38. {% endblock %}