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

github.com/mrmierzejewski/hugo-theme-console.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-29 14:00:40 +0300
committerMarcin Mierzejewski <marcin@mierzejewski.net>2020-05-29 14:00:40 +0300
commit820cab57306d8612619b34ea401d75fea52cfecf (patch)
tree92f4844e2a360b16137ed24030927a8b7b36642c
parentadcb460dfdfeed4a8d0852efff73e8063af45880 (diff)
home: fix problem with displaying three latest posts
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 161d206..a8e3bed 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,7 +11,7 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons
<div class="posts-list">
{{ with .Site.GetPage "/posts" }}
- {{ range first 3 ((where .Pages ".Params.private" "!=" true) sort .Data.Pages "Date" "desc")}}
+ {{ range first 3 (sort .Data.Pages "Date" "desc" (where .Pages ".Params.private" "!=" true))}}
<div class="post">
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>