diff options
author | Matt Stratton <matt.stratton@gmail.com> | 2021-02-18 19:25:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 19:25:13 +0300 |
commit | bef8761d83890f6c403715fbb85d593f4843d842 (patch) | |
tree | 39487de0a783a0625e460ed8d28f115e53e4bbab | |
parent | 21bae28160cbcfbe7204def9093d67ce64021c35 (diff) |
Make blog post button not appear if not needed (#339)
Fixes #338
Signed-off-by: Matt Stratton <matt.stratton@hey.com>
-rw-r--r-- | layouts/partials/jumbotron.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/jumbotron.html b/layouts/partials/jumbotron.html index fa668f3..26503bb 100644 --- a/layouts/partials/jumbotron.html +++ b/layouts/partials/jumbotron.html @@ -72,8 +72,8 @@ <a class="btn btn-default" href="{{"episode/index.xml" | absURL }}"><i class="fa fa-rss"></i> 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> Blog</a> </div> |