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