home: fix problem with displaying three latest posts
This commit is contained in:
parent
adcb460dfd
commit
820cab5730
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ Console is a minimal, responsive and light theme for Hugo inspired by Linux cons
|
||||||
|
|
||||||
<div class="posts-list">
|
<div class="posts-list">
|
||||||
{{ with .Site.GetPage "/posts" }}
|
{{ 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="post">
|
||||||
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
<div class="date">{{ .PublishDate.Format "Jan. 2, 2006" }}</div>
|
||||||
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
<h1><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
||||||
|
|
Loading…
Reference in a new issue