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

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pi <pavel.post@mailbox.org>2021-07-27 16:31:26 +0300
committerPavel Pi <pavel.post@mailbox.org>2021-07-27 16:31:26 +0300
commit3bc85c5226347b7e2f117dfe7846a3e402086216 (patch)
tree194e7fc201a5007085ea08b3cb6aa6d65bbe3c03
parent5864bbbb504b022654628997eff3bf37984ac41b (diff)
fixed Microblog.enable flag
-rw-r--r--layouts/_default/list.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index defe6ad..a2da730 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,8 +8,10 @@
<!-- Microblog Area -->
<!-- only show section if at least one microblog post -->
-{{ $microposts := (where .Site.RegularPages "Section" "==" "micro") }}
-{{ if ge (len $microposts) 1 }}
+{{if .Site.Params.Microblog.enable}}
+ {{ $microposts := (where .Site.RegularPages "Section" "==" "micro") }}
+ {{ if ge (len $microposts) 1 }}
+{{ end }}
<section class="section-highlight">
@@ -62,8 +64,10 @@
<div class="container">
- <a href="/blog"><h2 class="areatitle">{{ i18n "blog_title" }}</h2></a>
-
+ {{if .Site.Params.Microblog.enable}}
+ <a href="/blog"><h2 class="areatitle">{{ i18n "blog_title" }}</h2></a>
+ {{end}}
+
<!-- Loop through all posts filtered by type "article" -->
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "==" "blog") }}
{{ range .Paginator.Pages }}