multi_parts.html 799 B

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