ppoffice/hexo-theme-icarus
关于
为静态网站生成器 Hexo 打造的简洁、精致、现代主题。
网站与应用开发可以做什么
- Fast navigation: PJAX page loading with scroll restoration on Back/Forward, and page prefetching on hover.
- Reading: a reading progress bar, folded code blocks with a preview, and a notice on posts that have not been updated for a long time.
- Math and images: KaTeX or MathJax 4, and lightGallery 3 with Justified Gallery.
- Privacy: in opt-in mode, Cookie Consent loads the built-in analytics only after visitors allow them; Web Share shares without a third-party SDK.
实测星标增长
- 24小时
- +2
- 7天
- +3
- 15天
- +6
- 1个月
- +2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.zh-CN.md
原文
一款简洁、精致、现代的 Hexo 主题。
预览 ·
中文文档 ·
讨论区 ·
English

快速开始
安装发布版时,在兼容 ^7.1.1 || ^8.0.0 的 Hexo 站点根目录运行:
npm install hexo-theme-icarus hexo-renderer-inferno
hexo config theme icarus
hexo server
第一次运行时,Icarus 会在站点根目录生成 _config.icarus.yml,每个配置项都附有说明。
环境要求、源码安装及发布包与当前开发代码的区别,请看Icarus快速上手。
三种主题变体
在 _config.icarus.yml 或单篇文章的 front-matter 里改一行,就能切换整体外观。
默认 · |
Cyberpunk · |
Material 3 Expressive · |
亮点
响应式布局 |
按页面配置 |
内置 50 多个插件 |
此外还内置了:
- 快速浏览:PJAX 无刷新加载,前进后退时恢复滚动位置;鼠标悬停时预加载页面。
- 阅读体验:阅读进度条、可预览的折叠代码块,以及长期未更新文章的提示。
- 公式与图片:KaTeX 或 MathJax 4,lightGallery 3 搭配 Justified Gallery。
- 隐私:Cookie 提示在
opt-in模式下,访客同意后才加载内置统计;Web Share 分享无需第三方 SDK。 - 无障碍:支持键盘操作和屏幕阅读器,按
/或 Ctrl+K 打开搜索,内置 17 种语言的翻译。
支持的集成
| 类型 | 集成 |
|---|---|
| 评论 | Artalk、Beaudar、畅言、Disqus、DisqusJS、Giscus、Gitalk 2(预览版)、Isso、来必力(LiveRe)、Twikoo、Utterances、Waline |
| 搜索 | Algolia、百度、Google 自定义搜索、Insight(内置) |
| 分享 | AddToAny、ShareThis、Web Share |
| 打赏 | 爱发电、支付宝、Buy Me a Coffee、Patreon、PayPal、微信 |
| 统计 | 百度统计、Bing 网站管理员工具、不蒜子、CNZZ(友盟+)、Google Analytics、Hotjar、Matomo、StatCounter、X(Twitter)转化跟踪、Umami、Waline 阅读量 |
| 小组件 | 个人信息、文章目录、最新文章、归档、分类、标签、GitHub 贡献日历、链接、Google AdSense、follow.it |
| 其他 | 回到顶部、Cookie 提示、图片画廊(lightGallery + Justified Gallery)、KaTeX、MathJax 4、浏览器能力提示、页面加载动画、PJAX、页面预加载、进度条 |
大部分集成由 hexo-component-inferno 提供。
文档
快速上手 · 主题配置 · 升级指南 · 常见问题 · 功能演示 · 中文用户指南 · 全部文档
参与贡献
欢迎提交 bug、建议新功能、添加翻译或投稿教程。 可以新建 issue,或直接提交 pull request。
Icarus 基于 Hexo、Inferno、Stylus 和 Bulma 开发。参与开发:
npm ci
npm run lint
npm test # 单元测试和集成测试
npm run test:e2e # 浏览器测试,首次运行前先执行 "npx playwright install chromium"
测试需要 Node.js 20.19 或更高版本。代码风格和提交规范见贡献指南。
许可证
探索相关项目
加载中…