heading_block.html 329 B

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