multi_parts.html 731 B

123456789101112131415161718192021
  1. {% if article.metadata.parts_articles %}
  2. {%if SERIES_TITLE %}
  3. <h4>{{ SERIES_TITLE }}</h4>
  4. {% elif article.series_title %}
  5. <h4>{{ article.series_title }}</h4>
  6. {% else %}
  7. <h4>{{ article.parts }}</h4>
  8. {% endif %}
  9. <ul class="multi-parts-list">
  10. {% for part_article in article.metadata.parts_articles %}
  11. <li {% if part_article == article %}class="active-part"{% endif %}>
  12. {% if part_article != article %}
  13. <a href="{{ SITEURL }}/{{ part_article.url }}" title="{{ part_article.title }}">Part {{loop.index}}</a>
  14. {% else %}
  15. Part {{loop.index}}
  16. {% endif %}
  17. </li>
  18. {% endfor %}
  19. </ul>
  20. {% endif %}