steps.html 681 B

1234567891011
  1. {% assign count = include.count | default: 4 %}
  2. {% assign active = include.active | default: 3 %}
  3. <div class="steps{% if include.numbers %} steps-counter{% endif %}{% if include.color %} steps-{{ include.color }}{% endif %}{% if include['size'] %} steps-{{ include['size'] }}{% endif %}">
  4. {% for i in (1..count) %}
  5. {% assign elem = 'a' %}
  6. {% if i > active %}{% assign elem = 'span' %}{% endif %}
  7. <{{ elem }} href="#" class="step-item{% if i == active %} active{% endif %}"{% if include.show-tooltip %} data-bs-toggle="tooltip" title="Step {{ i }} description"{% endif %}>{% if include.show-title %}
  8. Step {{ i }}
  9. {% endif %}</{{ elem }}>
  10. {% endfor %}
  11. </div>