Skip to content

Commit

Permalink
Only render hero button if it has a title (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv authored Dec 9, 2021
1 parent 1ee3eb5 commit 7adda11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/partials/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
{{ . }}
</div>
{{ end }}
{{ if $buttonText }}
<div class="hero-cta">
<a href="{{ $buttonLink }}"><button class="cta-button">{{ $buttonText }}</button></a>
</div>
{{ end }}
</div>
</div>
</div>
Expand Down

0 comments on commit 7adda11

Please sign in to comment.