diff --git a/uniweb/templates/uniweb/blocks/advanced_title.html b/uniweb/templates/uniweb/blocks/advanced_title.html index 8ea3ba285ffbd8719348a022b62ac19c38ffdcee..39b965d2c187e9f5e344b370f7e7c3364e9211e7 100644 --- a/uniweb/templates/uniweb/blocks/advanced_title.html +++ b/uniweb/templates/uniweb/blocks/advanced_title.html @@ -1,5 +1,5 @@ {% if first %} -<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 {{ css_class|join:" " }}">{{ block.value.title }}</h1> +<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 {{ css_class|join:" " }}" id="{{ block.value.title|slugify }}">{{ block.value.title }}</h1> {% else %} -<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16 {{ css_class|join:" " }}">{{ block.value.title }}</h1> +<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16 {{ css_class|join:" " }}" id="{{ block.value.title|slugify }}">{{ block.value.title }}</h1> {% endif %} diff --git a/uniweb/templates/uniweb/blocks/picture_title.html b/uniweb/templates/uniweb/blocks/picture_title.html index ef3b4f63a017abddf078404fac6b3152c1ae9107..072da0006f74eebd6c4b82bdf31bc2bb56a87668 100644 --- a/uniweb/templates/uniweb/blocks/picture_title.html +++ b/uniweb/templates/uniweb/blocks/picture_title.html @@ -1,5 +1,5 @@ {% load wagtailimages_tags %} -<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16 clearfix {{ css_class|join:" " }}"> +<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16 clearfix {{ css_class|join:" " }}" id="{{ block.value.title|slugify }}"> {% image block.value.picture height-75 class="float-right mb-2 ml-2" %} {{ block.value.title }} </h1> diff --git a/uniweb/templates/uniweb/blocks/title.html b/uniweb/templates/uniweb/blocks/title.html index 94b97347c6d7c25e3b3c01cb555cb0acedbbb122..fe59772fa557e2d96dd6bd7f906062e4def819b4 100644 --- a/uniweb/templates/uniweb/blocks/title.html +++ b/uniweb/templates/uniweb/blocks/title.html @@ -1,5 +1,5 @@ {% if first %} -<h1 class="head-alt-md md:head-alt-lg mb-4 px-4">{{ block.value }}</h1> +<h1 class="head-alt-md md:head-alt-lg mb-4 px-4" id="{{ block.value|slugify }}">{{ block.value }}</h1> {% else %} -<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16">{{ block.value }}</h1> +<h1 class="head-alt-md md:head-alt-lg px-4 pt-4 pb-2 lg:mt-16" id="{{ block.value|slugify }}">{{ block.value }}</h1> {% endif %}