You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/06/02 21:45:55 UTC
[airavata-django-portal] 04/05: AIRAVATA-3465 add id to headings
for anchor links
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch airavata-3465
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit ba33fdb2e89a4d2064ee78799b22f5bd6742f90e
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jun 1 17:59:12 2021 -0400
AIRAVATA-3465 add id to headings for anchor links
---
django_airavata/templates/blocks/heading_block.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/django_airavata/templates/blocks/heading_block.html b/django_airavata/templates/blocks/heading_block.html
index f3d0c3f..cb61c17 100644
--- a/django_airavata/templates/blocks/heading_block.html
+++ b/django_airavata/templates/blocks/heading_block.html
@@ -1,15 +1,15 @@
<div class="{{self.custom_class}}">
{% if self.size == 'h1' %}
- <h1>{{ self.heading_text }}</h1>
+ <h1 id="{{ self.heading_text | slugify }}">{{ self.heading_text }}</h1>
{% elif self.size == 'h2' %}
- <h2>{{ self.heading_text }}</h2>
+ <h2 id="{{ self.heading_text | slugify }}">{{ self.heading_text }}</h2>
{% elif self.size == 'h3' %}
- <h3>{{ self.heading_text }}</h3>
+ <h3 id="{{ self.heading_text | slugify }}">{{ self.heading_text }}</h3>
{% elif self.size == 'h4' %}
- <h4>{{ self.heading_text }}</h4>
+ <h4 id="{{ self.heading_text | slugify }}">{{ self.heading_text }}</h4>
{% endif %}
</div>