Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bjacquemet/personal-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2019-05-07 15:06:15 +0300
committerBaptiste Jacquemet <baptiste.jacquemet@gmail.com>2019-05-07 15:06:15 +0300
commit8a6cac12d582572beaa8abd2774363fa91430300 (patch)
treed024f8e24090576aceae67c807d5484d42cb20c8
parent73ebb8597cf7114cd530456b93ac0d739da35a3b (diff)
update index.html section selection
-rw-r--r--layouts/index.html2
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" .}}