rename content/post to content/posts

This commit is contained in:
Vaica committed 2026-06-02 15:37:49 +08:00
1 parent cda4dbb24b
commit bcd4bc9282
866 files changed
+43 -25

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<div id="pjax-container">
<article>
<div class="post-list section" uk-scrollspy="target: > .post; cls: uk-animation-slide-bottom-small; delay: 100">
{{ $posts := where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden" }}
{{ $posts := where (where .Site.RegularPages "Type" "posts") "Params.status" "ne" "hidden" }}
{{ $exclude := where $posts "Params.categories" "intersect" (slice "笔记") }}
{{ $posts = $posts | complement $exclude }}
{{ $paginator := .Paginate $posts }}
+1 -1
View File
@@ -99,7 +99,7 @@
<div id="comments" class="comments-area">
<!-- 评论区内容 -->
{{ if or (eq .Type "about") (eq .Type "post") }}
{{ if or (eq .Type "about") (eq .Type "posts") }}
{{ partial "artalk.html" . }}
{{ end }}
<!-- 评论区内容结束 -->