Heaadings have a # on hover are actually links

This commit is contained in:
Konstantin 2024-08-24 12:01:00 +02:00
parent d03ff36185
commit 9073718616
2 changed files with 15 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{% if self.size == 'h2' %}
<h2 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h2>
<h2 id="{{ self.heading_text|lower|slugify }}"><a href="#{{ self.heading_text|lower|slugify }}" class="border-0 hover:border-b-4">{{ self.heading_text }}</a></h2>
{% elif self.size == 'h3' %}
<h3 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h3>
<h3 id="{{ self.heading_text|lower|slugify }}"><a href="#{{ self.heading_text|lower|slugify }}" class="border-0 hover:border-b-4">{{ self.heading_text }}</a></h3>
{% elif self.size == 'h4' %}
<h4 id="{{ self.heading_text|lower|slugify }}">{{ self.heading_text }}</h4>
<h4 id="{{ self.heading_text|lower|slugify }}"><a href="#{{ self.heading_text|lower|slugify }}" class="border-0 hover:border-b-4">{{ self.heading_text }}</a></h4>
{% endif %}