fix(Small CTA: Hide subtitle and cta if not set
This commit is contained in:
parent
e662047f26
commit
08fdf40afb
1 changed files with 5 additions and 1 deletions
|
|
@ -1,11 +1,15 @@
|
|||
<div class="section-cta-container">
|
||||
<div class="section-small-cta">
|
||||
<div>
|
||||
<h2 class="title">{{ title }}</h2>
|
||||
<h2 class="title">{{ title or '' }}</h2>
|
||||
{%- if subtitle -%}
|
||||
<p class="subtitle">{{ subtitle }}</p>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
<div>
|
||||
{%- if cta_label and cta_url -%}
|
||||
<a href="{{ cta_url }}" class="btn btn-lg btn-primary">{{ cta_label }}</a>
|
||||
{%- endif -%}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue