Improving the Heading
{
"heading": {
"heading_level": "",
"modifier": "",
"title": "Welcome to Mediacurrent training!",
"url": ""
}
}Update the heading's markup and logic
<h{{ heading.heading_level|default('2') }} class="heading{{ heading.modifier ? ' ' ~ heading.modifier }}">
<div data-gb-custom-block data-tag="if">
<a href="{{ heading.url }}" class="heading__link">
{{ heading.title }}
</a>
<div data-gb-custom-block data-tag="else"></div>
{{ heading.title }}
</div>
</h{{ heading.heading_level|default('2') }}>Compiling the code
Last updated