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

github.com/themefisher/kross-hugo-portfolio-template.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuveer Varahagiri <6439518+raghuvv@users.noreply.github.com>2020-09-21 00:08:56 +0300
committerRaghuveer Varahagiri <6439518+raghuvv@users.noreply.github.com>2020-09-21 00:08:56 +0300
commit390fc7f9e0a455068b4b18bef8d13435b02c2267 (patch)
tree73ff2728c5dd4f88c52f224ae2dbd35b2e9c2093
parent00de8df90d12c56acedac2ab3d8fa5007d3fdba4 (diff)
bugfix: corrected the range filter for 'blog' section on homepage; added a where condition to select only pages from the blog section
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1904a9e..7bc4e47 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -265,7 +265,7 @@
<div class="col-12 text-center">
<h2 class="section-title">{{site.Data.homepage.blog.title | markdownify }}</h2>
</div>
- {{ range first 3 site.RegularPages }}
+ {{ range first 3 (where .Site.RegularPages "Section" "blog")}}
{{ .Render "post" }}
{{ end }}
</div>