@@ -38,7 +38,7 @@
{{ partial "nav.html" . }}
- {{ with .Site.GetPage "page" "/home" }}
+ {{ with .Site.GetPage "/home" }}
{{ $home := . }}
{{ range sort (.Resources.ByType "page") "Params.weight" }}
{{ if ne .Name "contact.md" }}
diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html
index 1cbade0..67719bc 100644
--- a/layouts/partials/home/blog.html
+++ b/layouts/partials/home/blog.html
@@ -1,4 +1,4 @@
-{{ with .Site.GetPage "section" "/blog" }}
+{{ with .Site.GetPage "/blog" }}
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html
index afd9e20..324573f 100644
--- a/layouts/partials/home/projects.html
+++ b/layouts/partials/home/projects.html
@@ -1,4 +1,4 @@
-{{ with .Site.GetPage "section" "/projects" }}
+{{ with .Site.GetPage "/projects" }}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 65a775d..ba0f13e 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -40,7 +40,7 @@
{{ i18n "nav_main" . }}
{{ end }}
- {{ with .Site.GetPage "page" "/home" }}
+ {{ with .Site.GetPage "/home" }}
{{ range sort (.Resources.ByType "page") "Params.weight" }}
{{ if ne .Name "contact.md" }}
{{ .Title }}
@@ -50,7 +50,7 @@
{{ $pageIsInProjects := eq .Page.Section "projects"}}
{{ if not (and $pageIsInProjects (eq .Page.Kind "section")) }}
- {{ with .Site.GetPage "section" "/projects" }}
+ {{ with .Site.GetPage "/projects" }}
{{ $totalProjects := (len .Pages) }}
{{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }}
{{ if $isHome }}
@@ -71,7 +71,7 @@
{{ $pageIsInBlog := eq .Page.Section "blog"}}
{{ if not (and $pageIsInBlog (eq .Page.Kind "section")) }}
- {{ with .Site.GetPage "section" "/blog" }}
+ {{ with .Site.GetPage "/blog" }}
{{ if $isHome }}
{{ .Title }}
{{ else }}
@@ -86,7 +86,7 @@
{{ end }}
{{ end }}
- {{ with .Site.GetPage "page" "/home" }}
+ {{ with .Site.GetPage "/home" }}
{{ with .Resources.GetMatch "contact.md" }}
{{ .Title }}
{{ end }}