feat(theme): 图片加载动画、Blur

This commit is contained in:
Ad-closeNN
2026-05-02 13:34:18 +08:00
parent 8ef97d62ff
commit 005d8923e4
6 changed files with 134 additions and 6 deletions
+2 -2
View File
@@ -373,12 +373,12 @@ const isOutdated = entry.data.outdated;
<!-- always show cover as long as it has one -->
<!-- 使用自制 showcover 控制器控制头图的出现 -->
{showcover && entry.data.image &&
<ImageWrapper id="post-cover" src={entry.data.image} basePath={path.join("content/posts/", getDir(entry.id))} class="mb-8 rounded-xl banner-container onload-animation"/>
<ImageWrapper id="post-cover" src={entry.data.image} basePath={path.join("content/posts/", getDir(entry.id))} class="mb-8 rounded-xl banner-container onload-animation" loader/>
}
<!-- 自制内部头图 customcover-->
{customcover &&
<ImageWrapper id="post-cover" src={entry.data.customcover} basePath={path.join("content/posts/", getDir(entry.id))} class="mb-8 rounded-xl banner-container onload-animation"/>
<ImageWrapper id="post-cover" src={entry.data.customcover} basePath={path.join("content/posts/", getDir(entry.id))} class="mb-8 rounded-xl banner-container onload-animation" loader/>
}
<!-- 头图调试代码