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

github.com/themefisher/meghna-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Bigonneau <sylvain@monroe-labs.com>2021-11-07 19:59:22 +0300
committerGitHub <noreply@github.com>2021-11-07 19:59:22 +0300
commit0bda1ec3a16353b635b0706ef27ce4bf906917c8 (patch)
tree0ed916ff0fbb100ffc2d58b2618992323e91c4e1 /layouts
parent1483fc0277aacc957817ea1e21a19ff812ba1485 (diff)
hide blog section when there are no blog posts
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/blog.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html
index 44467a9..cfa45e9 100644
--- a/layouts/partials/blog.html
+++ b/layouts/partials/blog.html
@@ -1,4 +1,4 @@
-{{ if gt site.RegularPages 0}}
+{{ if gt (where site.RegularPages "Section" "==" "blog") 0}}
{{"<!-- Start Blog Section -->" | safeHTML}}
<section id="blog" class="section">
<div class="container">
@@ -24,4 +24,4 @@
</div>
</section>
{{"<!-- /blog -->" | safeHTML}}
-{{ end }} \ No newline at end of file
+{{ end }}