Skip to content

v5.2.0

Choose a tag to compare

@njueeRay njueeRay released this 10 Mar 07:39
· 70 commits to main since this release

v5.2.0 — 读者体验 Sprint

ToC + Giscus + ReadingProgress 激活 + 相关文章推荐

Added

  • 相关文章推荐(pages/blog/[...slug].astro)
    • 基于共享 tag 交集数量评分,pubDate 降序兜底,最多展示 3 篇
    • 终端风格卡片:文章标题 + 发布日期 + 共享 tag 彩色徽章
    • 位置:author-card 之后、Giscus 评论之前

Confirmed Integrated

  • ReadingProgress.astro — 顶部固定滚动进度条,astro:after-swap 支持 ClientRouter(v5.2.0 确认全局激活)
  • TableOfContents.astro — 右侧固定目录栏,≥1280px 自动显示,IntersectionObserver 当前标题高亮
  • Giscus.astro — GitHub Discussions 评论系统(dark_dimmed 主题)

Build

  • astro check:0 errors · 0 warnings · 0 hints
  • npm run build:57 页构建成功

Full Changelog: https://github.com/njueeRay/OpenProfile/blob/main/CHANGELOG.md