headings have an id, version 34

This commit is contained in:
Konstantin 2024-04-09 09:47:51 +02:00
parent eacd3816f5
commit b7c5731d2f
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{% if self.size == 'h2' %}
<h2>{{ self.heading_text }}</h2>
<h2 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h2>
{% elif self.size == 'h3' %}
<h3>{{ self.heading_text }}</h3>
<h3 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h3>
{% elif self.size == 'h4' %}
<h4>{{ self.heading_text }}</h4>
<h4 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h4>
{% endif %}