diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
index cd8e18b..b3c7f68 100644
--- a/layouts/partials/projects.html
+++ b/layouts/partials/projects.html
@@ -9,7 +9,7 @@
{{ $totalProjects := (len .Pages) }}
{{ $numberOfProjectsToShow := .Site.Params.numberOfProjectsToShow | default $totalProjects }}
- {{ range $index, $element := .Pages | first $numberOfProjectsToShow }}
+ {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }}
{{ if eq (mod $numberOfProjectsToShow 2) 0 }}
{{ else }}
@@ -41,7 +41,7 @@
- {{ range $index, $element := .Pages | first $numberOfProjectsToShow }} {{ if not .Params.external_link }}
+ {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} {{ if not .Params.external_link }}
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index a19650a..be4ded0 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -17,7 +17,7 @@
{{ $numberOfPages := len .Pages}}
- {{ range .Pages }}
+ {{ range .Pages.ByWeight }}
{{ if eq (mod $numberOfPages 2) 0 }}
{{ else }}