diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/layouts/index.html b/layouts/index.html index 494e0d0..f18a170 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -42,13 +42,18 @@ </section> <!-- Done with Hero --> {{ with .Site.GetPage "/home" }} - - {{ $blog := .Site.GetPage "/blog" }} - {{ $projects := .Site.GetPage "/projects" }} {{ $home := . }} + {{ $pages := .Resources.ByType "page" }} + + {{ with .Site.GetPage "/blog" }} + {{ $pages = $pages | append . }} + {{ end }} + + {{ with .Site.GetPage "/projects" }} + {{ $pages = $pages | append . }} + {{ end }} - {{ $pages := sort (.Resources.ByType "page" | append $blog | append $projects) "Params.weight" }} - {{ range $pages }} + {{ range sort $pages "Params.weight" }} {{ if ne .Name "contact.md" }} {{ if eq .File.Dir "projects/" }} <!-- Now for some cool projects --> |