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

+26 -9
View File
@@ -4994,7 +4994,7 @@ html[data-theme="light"] .atk-loading-spinner svg circle {
/* Link Card */
/* Link Card - only in post content */
a.link-card {
display: flex;
align-items: center;
@@ -5018,21 +5018,21 @@ a.link-card:hover {
transform: translateY(-1px);
text-decoration: none !important;
}
.link-card-icon {
a.link-card .link-card-icon {
width: 24px;
height: 24px;
border-radius: 5px;
flex-shrink: 0;
object-fit: contain;
}
.link-card-body {
a.link-card .link-card-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 1px;
}
.link-card-title {
a.link-card .link-card-title {
font-weight: 500;
white-space: nowrap;
overflow: hidden;
@@ -5040,14 +5040,14 @@ a.link-card:hover {
font-size: 13.5px;
color: rgba(30, 30, 30, 0.92);
}
.link-card-url {
a.link-card .link-card-url {
font-size: 11px;
color: rgba(30, 30, 30, 0.45);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.link-card-arrow {
a.link-card .link-card-arrow {
flex-shrink: 0;
color: rgba(30, 30, 30, 0.3);
font-size: 13px;
@@ -5065,13 +5065,13 @@ a.link-card:hover .link-card-arrow {
[data-theme="dark"] a.link-card:hover {
border-color: rgba(148, 163, 184, 0.3);
}
[data-theme="dark"] .link-card-title {
[data-theme="dark"] a.link-card .link-card-title {
color: rgba(226, 232, 240, 0.96);
}
[data-theme="dark"] .link-card-url {
[data-theme="dark"] a.link-card .link-card-url {
color: rgba(226, 232, 240, 0.4);
}
[data-theme="dark"] .link-card-arrow {
[data-theme="dark"] a.link-card .link-card-arrow {
color: rgba(226, 232, 240, 0.3);
}
[data-theme="dark"] a.link-card:hover .link-card-arrow {
@@ -5287,3 +5287,20 @@ a.link-card:hover .link-card-arrow {
border-color: rgba(148, 163, 184, 0.15);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
#szh .link-card:hover {
transform: none !important;
box-shadow: none !important;
}
#szh .link-card-icon,
#szh .link-card-body,
#szh .link-card-url,
#szh .link-card-arrow {
display: none !important;
}
#szh .link-card .link-card-title {
display: inline !important;
font-weight: inherit !important;
font-size: inherit !important;
color: var(--accent, #3b82f6) !important;
}
+1 -1
View File
@@ -39,7 +39,7 @@
var textNodes = [];
while (walker.nextNode()) {
var node = walker.currentNode;
if (node.parentElement && node.parentElement.closest('a, .link-card, code, pre, video')) continue;
if (node.parentElement && node.parentElement.closest('a, .link-card, code, pre, video, #szh')) continue;
if (URL_RE.test(node.textContent)) textNodes.push(node);
}
+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 }}
<!-- 评论区内容结束 -->
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -1,5 +1,5 @@
[
{{- range $index, $e := where .Site.RegularPages "Type" "post" -}}
{{- range $index, $e := where .Site.RegularPages "Type" "posts" -}}
{{- if $index -}}, {{- end -}}
{
"title": {{ .Title | jsonify }},
+1 -1
View File
@@ -5,7 +5,7 @@
{{ $currentMonth := 0 }}
{{/* 过滤文章:类型为 post 且 status 不为 hidden */}}
{{ $pages := where (where .Site.RegularPages "Type" "post") "Params.status" "ne" "hidden" }}
{{ $pages := where (where .Site.RegularPages "Type" "posts") "Params.status" "ne" "hidden" }}
{{ range $pages }}
{{ $year := .Date.Year }}
+2 -1
View File
@@ -8,7 +8,8 @@
- 名称:{{ .Site.Params.message_info.name | default .Site.Params.artalk.site }}<br>
- 简介:{{ .Site.Params.message_info.description | default .Site.Params.author.description }}<br>
- 链接:{{ .Site.Params.message_info.url | default .Site.BaseURL }}<br>
- 图标:{{ .Site.Params.message_info.icon | default .Site.Params.author.avatar }}
- 图标:{{ .Site.Params.message_info.icon | default .Site.Params.author.avatar }}<br>
- 订阅:{{ .Site.BaseURL }}rss.xml
</div>
</div>
<hr class="uk-divider-icon">
+1 -1
View File
@@ -56,7 +56,7 @@
// Data Processing
var dataMap = new Map();
{{ range where .Site.RegularPages "Type" "post" }}
{{ range where .Site.RegularPages "Type" "posts" }}
var key = "{{ .Date.Format "2006-01-02" }}";
var link = "{{ .RelPermalink }}";
var title = "{{ .Title }}";