rename content/post to content/posts
This commit is contained in:
1 parent
cda4dbb24b
commit
bcd4bc9282
866 files changed
+43
-25
No files matched your search
@@ -34,7 +34,7 @@
|
||||
|
||||
<div class="posts" uk-scrollspy="target: > .post; cls: uk-animation-slide-bottom-small; delay: 100">
|
||||
<!-- 使用 sort 对文章按 Weight 排序 -->
|
||||
{{ $posts := sort (where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden")
|
||||
{{ $posts := sort (where (where .Site.RegularPages "Type" "posts") "Params.status" "ne" "hidden")
|
||||
"Weight" }}
|
||||
{{ $exclude := where $posts "Params.categories" "intersect" (slice "笔记") }}
|
||||
{{ $posts = $posts | complement $exclude }}
|
||||
|
||||
Reference in new issue
Block a user