diff options
author | Raghuveer Varahagiri <6439518+raghuvv@users.noreply.github.com> | 2020-09-21 00:08:56 +0300 |
---|---|---|
committer | Raghuveer Varahagiri <6439518+raghuvv@users.noreply.github.com> | 2020-09-21 00:08:56 +0300 |
commit | 390fc7f9e0a455068b4b18bef8d13435b02c2267 (patch) | |
tree | 73ff2728c5dd4f88c52f224ae2dbd35b2e9c2093 | |
parent | 00de8df90d12c56acedac2ab3d8fa5007d3fdba4 (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.html | 2 |
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> |