25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 년 전
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends "base.html" %}
  2. {% block content_title %}{% endblock %}
  3. {% block content %}
  4. {% if articles %}
  5. {% for article in articles_page.object_list %}
  6. {# First item #}
  7. {% if loop.first and not articles_page.has_previous() %}
  8. <article>
  9. <a href="{{ SITEURL }}/{{ article.url }}"><h3 class="article-title">{{ article.title }}</h3></a>
  10. {% include 'article_infos.html' %}{{ article.content }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
  11. </article>
  12. {% if loop.length == 1 %}
  13. {% include 'pagination.html' %}
  14. {% endif %}
  15. {% if loop.length > 1 %}
  16. <hr class="gradient"/>
  17. {% endif %}
  18. {# other items #}
  19. {% else %}
  20. <article>
  21. <a href="{{ SITEURL }}/{{ article.url }}"><h3 class="article-title">{{ article.title }}</h3></a>
  22. {% include 'article_infos.html' %}{{ article.summary }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
  23. <a class="button radius secondary small right" href="{{ SITEURL }}/{{ article.url }}">Read More</a>
  24. <hr class="gradient"/>
  25. </article>
  26. {% endif %}
  27. {% if loop.last %}
  28. <!-- /#posts-list -->
  29. {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %}
  30. {% include 'pagination.html' %}
  31. {% endif %}
  32. {% endif %}
  33. {% endfor %}
  34. {% else %}
  35. <h3>Pages</h3>
  36. {% for page in pages %}
  37. <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  38. {% endfor %}
  39. {% endif %}
  40. {% endblock content %}