Skip to content

Commit

Permalink
Hide button in hero-item, if no button text
Browse files Browse the repository at this point in the history
  • Loading branch information
MJacred committed Feb 6, 2023
1 parent 73bc625 commit df4d9f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/hero-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ <h2 class="title is-2">{{ $title }}</h2>
<h3 class="subtitle is-5 is-muted">{{ $subtitle }}</h3>
</div>

{{- if $buttonText }}
<p class="has-text-centered mt-20">
<a class="button cta is-large rounded secondary-btn raised" href="{{ $buttonUrl | absLangURL }}">
{{ $buttonText }}
</a>
</p>
{{- end }}
</div>
</section>

0 comments on commit df4d9f7

Please sign in to comment.