diff --git a/archetypes/moments.md b/archetypes/moments.md index 9927594..783c538 100644 --- a/archetypes/moments.md +++ b/archetypes/moments.md @@ -1,6 +1,6 @@ --- -# 置顶 (如需置顶这片Moment, 则将值设定为大于0的整数) -top: 0 +# 置顶 (如需置顶这片Moment, 则将值设定为大于0的整数, 值越小越靠前,例如1会将moment放在最顶端) +top: # 名称(不填写则为设置的默认名称) name: diff --git a/layouts/index.html b/layouts/index.html index b77656f..090f7d0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }}
- {{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top").Reverse }} + {{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top") }} {{ range $paginator.Pages }} {{ partial "row.html" . }} {{ end }} @@ -9,7 +9,7 @@ {{ define "pagination" }} - {{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top").Reverse }} + {{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top") }} {{ if $paginator.HasPrev }}
  • Previous