From 202ee76cd29de8f179ac6cc9cc8980395498a498 Mon Sep 17 00:00:00 2001 From: zqlit Date: Wed, 7 Oct 2026 22:54:37 +0800 Subject: [PATCH] =?UTF-8?q?edit(=E5=85=B3=E4=BA=8E=E9=A1=B5):=20=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=E5=8F=AA=E6=92=AD=E4=B8=80=E6=AC=A1=EF=BC=8C=E6=BB=9A?= =?UTF-8?q?=E5=9B=9E=E4=B8=8D=E5=86=8D=E9=87=8D=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删掉内容组全部 repeat: true(attrs/tl/stats/bars/tags/走心评论/相册) - 首次滚进照常播入场动画,滚回保持就位不重播不重藏 - 分类条 inview 常驻 → 宽度保持不重长 - 同步更新各处注释 --- content/about.md | 4 ++-- themes/Ying/layouts/page/about.html | 6 +++--- themes/Ying/layouts/partials/about-intro.html | 14 +++++++------- .../Ying/layouts/partials/featured-comments.html | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/content/about.md b/content/about.md index 819b18cc..f621d900 100644 --- a/content/about.md +++ b/content/about.md @@ -14,7 +14,7 @@ draft: false
02 / 这个博客 (Build)
-
+
框架Hugo · 主题二开 Ying(自用不开源)
@@ -30,7 +30,7 @@ draft: false
-
+
Hugo Cloudflare Docker diff --git a/themes/Ying/layouts/page/about.html b/themes/Ying/layouts/page/about.html index c5ee93aa..846093c8 100644 --- a/themes/Ying/layouts/page/about.html +++ b/themes/Ying/layouts/page/about.html @@ -17,8 +17,8 @@ ③ 动画类一律官方:uk-animation-fade(标题淡入 0.8s)、 uk-animation-slide-{bottom,right}-medium(内容 50px 滑入 0.5s)。 ★ 不要用 -small:位移只有 10px,在这么宽的版面里根本看不出来。 - ④ 内容组一律 repeat: true —— 移出视口重藏、滚回重播(归档页年份 - 标题同款),页面滚动时才是「活的」;分节标题不 repeat(同归档 h3)。 + ④ 内容组一律不写 repeat —— 只在首次滚进时播一次,滚回时保持就位 + 不重播、不重藏(用户定案 2026-10-07);分节标题同样只播一次。 PJAX:换入的 DOM 由 mypjax.js 的 reinitUIKit() 重新 boot(UIKit 的 MutationObserver 只反应属性新增,管不了 PJAX 整树换入)。 @@ -67,7 +67,7 @@ {{ $sectionCount = add $sectionCount 1 }}
{{ printf "%02d" $sectionCount }} / 光影 (Album)
-
+
{{ range site.Data.album }}
diff --git a/themes/Ying/layouts/partials/about-intro.html b/themes/Ying/layouts/partials/about-intro.html index 08a0b3ce..5db7733d 100644 --- a/themes/Ying/layouts/partials/about-intro.html +++ b/themes/Ying/layouts/partials/about-intro.html @@ -60,10 +60,10 @@ 动效:与归档页 page/archives.html 完全同源的官方写法: · target 用后代选择器(不写 `>`,避免结构耦合选不中) · 动画类用官方 uk-animation-slide-*-medium(50px 位移,看得清) - · repeat: true —— 每次滚进视口都重播(归档页年份标题同款), - 这是「滚动时页面是活的」的关键;hidden 用默认值 + · 不写 repeat —— 只在首次滚进时播一次,滚回保持就位不重播 + (用户定案 2026-10-07);hidden 用默认值 · delay 官方语义:同一批进视口的 target 依次累加 → 自动错落 --> -
+
坐标湖北 · 襄阳 → 广州
其人00 后,性格随和,风趣幽默
打算未来计划定居江苏南京
@@ -72,7 +72,7 @@
-
+
{{- range $nodes }}
{{ .when }}
@@ -84,7 +84,7 @@ -
+
{{ $total }}篇文章
{{ $spanYears }}年积累
{{ $thisYear }}今年更新
@@ -93,8 +93,8 @@ {{- if $top }} -
+ 不写 repeat → inview 类常驻,滚回时宽度保持、不重长。 --> +
{{- range $top }} {{- $pct := div (mul .count 100) $maxC }}
diff --git a/themes/Ying/layouts/partials/featured-comments.html b/themes/Ying/layouts/partials/featured-comments.html index 3f56d4bd..094f2310 100644 --- a/themes/Ying/layouts/partials/featured-comments.html +++ b/themes/Ying/layouts/partials/featured-comments.html @@ -131,7 +131,7 @@ } -
+
走心评论

当我看到各位在不同的时间和故事中,发出一份份走心的评论时,一份温暖之意即笼罩在我的心头。