diff options
author | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-29 14:00:40 +0300 |
---|---|---|
committer | Marcin Mierzejewski <marcin@mierzejewski.net> | 2020-05-29 14:00:40 +0300 |
commit | 820cab57306d8612619b34ea401d75fea52cfecf (patch) | |
tree | 92f4844e2a360b16137ed24030927a8b7b36642c | |
parent | adcb460dfdfeed4a8d0852efff73e8063af45880 (diff) |
home: fix problem with displaying three latest posts
-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 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> |