Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stratton <matt.stratton@gmail.com>2021-02-18 19:25:13 +0300
committerGitHub <noreply@github.com>2021-02-18 19:25:13 +0300
commitbef8761d83890f6c403715fbb85d593f4843d842 (patch)
tree39487de0a783a0625e460ed8d28f115e53e4bbab
parent21bae28160cbcfbe7204def9093d67ce64021c35 (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.html4
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>&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>