fix(Small CTA: Hide subtitle and cta if not set

This commit is contained in:
Faris Ansari 2020-09-11 16:02:40 +05:30
parent e662047f26
commit 08fdf40afb

View file

@ -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>