diff --git a/themes/hugo-xmin/layouts/_default/list.html b/themes/hugo-xmin/layouts/_default/list.html
index f3b5a56..7e9cde6 100644
--- a/themes/hugo-xmin/layouts/_default/list.html
+++ b/themes/hugo-xmin/layouts/_default/list.html
@@ -15,17 +15,20 @@
{{ if not .Params.isBranchWithContent }}
{{ if not .IsHome }}
- {{ $pages := .Pages }}
+ {{ $pages := (sort .Pages ".Title") }}
+ {{ if (eq .Type "posts") }}
+ {{ $pages = (sort .Pages ".Date" "desc") }}
+ {{ end }}
{{ $paginator := .Paginate (where $pages "Section" "!=" "") }}
{{ if (eq .Type "posts") }}
- {{ range sort $paginator.Pages ".Date" "desc"}}
+ {{ range $paginator.Pages }}
-
{{ .Date.Format "2006/01/02" }}
{{ .Title | markdownify }}
{{ end }}
{{ else }}
- {{ range sort $paginator.Pages ".Title" }}
+ {{ range $paginator.Pages }}
-
{{ .Title | markdownify }}