Skip to content

Commit

Permalink
Make blog post button not appear if not needed (#339)
Browse files Browse the repository at this point in the history
Fixes #338

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton authored Feb 18, 2021
1 parent 21bae28 commit bef8761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/jumbotron.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
<a class="btn btn-default" href="{{"episode/index.xml" | absURL }}"><i class="fa fa-rss"></i>&nbsp;Podcast</a>
</div>
{{ end }}

{{ if ge (len .Site.Pages) 1 }}
{{ $blog := (where .Site.RegularPages "Section" "==" "blog") }}
{{ if ge (len $blog) 1 }}
<div class = "d-flex p-2 subscribe_buttons col-md-auto">
<a class="btn btn-default" href="{{"blog/index.xml" | absURL }}"><i class="fa fa-rss"></i>&nbsp;Blog</a>
</div>
Expand Down

0 comments on commit bef8761

Please sign in to comment.