diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-26 23:37:41 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-26 23:37:41 +0200 |
| commit | 09858b7ffdaf73b8afeab1d3957a79324ae1be2b (patch) | |
| tree | 8bb803899f223be1f916a4cd35ee68f8130d0620 /layouts/index.html | |
| parent | 8ee093595416394a42a98a55a87ed214ae63f729 (diff) | |
| download | gohugo-theme-ed-09858b7ffdaf73b8afeab1d3957a79324ae1be2b.tar.gz | |
Use proper condition to select all posts
Diffstat (limited to 'layouts/index.html')
| -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 01deb99..f0f88ae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,7 +8,7 @@ {{/* TODO: Translate me */}} <h2>Latest Publications</h2> <ul class="texts"> - {{ range first 10 (where site.RegularPages "Section" "!=" "") }} + {{ range first 10 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections) }} <li class="text-title"> <a href="{{ .Permalink }}">{{ .Title }}</a> </li> |
