Skip to content

Commit

Permalink
Adding conditional for showing hero cta button
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Moraes committed Oct 11, 2018
1 parent e144be3 commit 64af36f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/views/front-page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
<div class="hero-home__content">
<div class="hero-home__title has-text-yellow">{{ hero.hero_title_first_line }}</div>
<div class="hero-home__title has-text-white">{{ hero.hero_title_second_line }}</div>
<a href="{{ hero.button_page_link }}" class="hero-home__cta button is-rounded is-pulled-right" {{ button_style }}>
<i class="icon-cart is-white"></i> {{ hero.button_label }}
</a>
{% if hero.button_label is not empty %}
<a href="{{ hero.button_page_link }}" class="hero-home__cta button is-rounded is-pulled-right" {{ button_style }}>
<i class="icon-cart is-white"></i> {{ hero.button_label }}
</a>
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 64af36f

Please sign in to comment.