diff options
-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 ecb4b02..526453a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ {{ .Content }} <h2>My Latest Job</h2> - {{ $pages := where site.RegularPages "Type" "in" "portfolio"}} + {{ $pages := where site.RegularPages.ByPublishDate.Reverse "Type" "in" .Site.Params.notFound.mainSection }} {{ range first 1 $pages }} <div class="portfolio-list"> {{ partial "portfolio/item" .}} |