diff options
author | Baptiste Jacquemet <baptiste.jacquemet@gmail.com> | 2019-05-07 15:06:15 +0300 |
---|---|---|
committer | Baptiste Jacquemet <baptiste.jacquemet@gmail.com> | 2019-05-07 15:06:15 +0300 |
commit | 8a6cac12d582572beaa8abd2774363fa91430300 (patch) | |
tree | d024f8e24090576aceae67c807d5484d42cb20c8 | |
parent | 73ebb8597cf7114cd530456b93ac0d739da35a3b (diff) |
update index.html section selection
-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" .}} |