heading_block.html 310 B

123456789101112131415
  1. {#
  2. Content is coming from the StandardBlock StreamField
  3. class within `blocks.py`
  4. #}
  5. {% if value.size == 'h2' %}
  6. <h2>{{ value.heading_text }}</h2>
  7. {% elif value.size == 'h3' %}
  8. <h3>{{ value.heading_text }}</h3>
  9. {% elif value.size == 'h4' %}
  10. <h4>{{ value.heading_text }}</h4>
  11. {% endif %}