diff --git a/layouts/index.html b/layouts/index.html
index 9aeee99..8fa2e38 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -16,7 +16,7 @@
{{ range (first .Site.Params.latestpostcount (where .Pages "Section" "blog")).GroupByDate "Jan, 2006" "desc" }}
- {{ .Key }}
- {{ range .Pages.ByPublishDate }}
+ {{ range sort .Pages "Date" "desc" }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}
@@ -34,7 +34,7 @@
{{ if gt $nbPosts 0 }}
Best posts
- {{ range .Data.Pages.ByPublishDate }}
+ {{ range sort .Data.Pages "Date" "desc" }}
{{ if eq .Params.best true }}
{{ partial "li.html" . }}
{{ end }}
@@ -46,4 +46,3 @@
{{ partial "footer.html" . }}
-
diff --git a/layouts/section/blog.html b/layouts/section/blog.html
index a5ed1a5..8b6d46f 100644
--- a/layouts/section/blog.html
+++ b/layouts/section/blog.html
@@ -7,7 +7,7 @@
{{ range .Data.Pages.GroupByDate "Jan, 2006" "desc"}}
- {{ .Key }}
- {{ range .Pages.ByPublishDate }}
+ {{ range sort .Pages "Date" "desc" }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}