hexo-theme-redefine
Version:
Redefine your writing with Hexo Theme Redefine.
171 lines (118 loc) • 8.94 kB
Markdown
<div align="right">
<a title="en" href="README.md"><img src="https://img.shields.io/badge/-English-545759?style=for-the-badge" alt="english"></a>
<img src="https://img.shields.io/badge/-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-A31F34?style=for-the-badge" alt="简体中文">
<a title="zh-TW" href="README_zh-TW.md"><img src="https://img.shields.io/badge/-%E7%B9%81%E4%BD%93%E4%B8%AD%E6%96%87-545759?style=for-the-badge" alt="繁体中文"></a>
</div>
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/f2ff10f6-a740-4120-ba04-1b2a518fb019" alt="Redefine"></a>
# hexo-theme-redefine
"Redefine" 是一款简洁、快速、纯粹的 Hexo 主题,其简约之美遥非平凡,让人领略到设计的力量。本主题不仅包含诸多实用丰富的功能,而且赋予了精致而出色的设计理念。
本主题源自 [hexo-theme-keep](https://github.com/XPoet/hexo-theme-keep) 的早期版本,进一步进行了精心打磨和扩展。在保留了原主题的精炼基础上,我们优化了整体样式,引入了丰富的写作模块,并增添了多种插件支持。同时,大幅提高了自定义的灵活度,旨在让您能够更加便捷、顺畅地运用本主题,打造出独具匠心的个人博客。
<p align="center">
<a href="https://www.npmjs.com/package/hexo-theme-redefine">
<img src="https://img.shields.io/npm/v/hexo-theme-redefine?color=F38181&label=version&logo=npm&logoColor=F38181&style=for-the-badge" referrerpolicy="no-referrer" alt="NPM version" />
</a>
<a href="https://www.npmjs.com/package/hexo-theme-redefine">
<img src="https://img.shields.io/npm/dm/hexo-theme-redefine?color=FCE38A&logo=npm&logoColor=FCE38A&style=for-the-badge" referrerpolicy="no-referrer" alt="npm downloads" />
</a>
<a href="https://www.npmjs.com/package/hexo-theme-redefine">
<img src="https://img.shields.io/npm/dt/hexo-theme-redefine?color=95E1D3&label=total&logo=npm&logoColor=95E1D3&style=for-the-badge" referrerpolicy="no-referrer" alt="npm-total" />
</a>
<a href="https://hexo.io"><img src="https://img.shields.io/badge/hexo-%3E=5.0.0-8caaee?style=for-the-badge&logo=hexo&logoColor=8caaee" referrerpolicy="no-referrer" alt="Required Hexo version" /></a>
<img src="https://img.shields.io/badge/node-%3E=12.0-a6d189?style=for-the-badge&logo=node.js&logoColor=a6d189" referrerpolicy="no-referrer" alt="NodeJS Version" />
</p>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/337c1801-7a59-45af-a02a-583508be69a5" />
<source media="(prefers-color-scheme: light)" srcset="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/d88a5544-c86e-46ab-8e52-0582b437f989" />
<img alt="Cover Image" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/d88a5544-c86e-46ab-8e52-0582b437f989" />
</picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/5d51b48d-7b08-4da0-a304-933424739203" />
<source media="(prefers-color-scheme: light)" srcset="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/c6df4b81-557d-4e0b-8038-b056075d0fa4" />
<img alt="Pages Image" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/c6df4b81-557d-4e0b-8038-b056075d0fa4" />
</picture>
## 🌐 官方演示站
- [EvanNotFound's Blog](https://ohevan.com)
- [Theme Redefine 演示站点](https://redefine.ohevan.com)
- [Redefine 用户墙](https://redefine.ohevan.com/showcase)
如果你也在使用 Redefine,欢迎在前往 [Redefine 用户墙](https://redefine.ohevan.com/showcase) 添加你的博客链接。
## ⛰️ 部分功能
- [笔记模块](https://redefine-docs.ohevan.com/modules/notes)
- [友链样式](https://redefine-docs.ohevan.com/page_templates/friends)
- [数学公式](https://redefine-docs.ohevan.com/plugins/mathjax)
- 代码块语言显示
- Light/Dark 模式切换
- [Font Awesome 6.2.1 Pro](https://redefine-docs.ohevan.com/basic/fontawesome)(包含 Duotone/Regular/Thin 等不同样式)
- [下拉菜单](https://redefine-docs.ohevan.com/dhome/navbar#%E9%93%BE%E6%8E%A5%E5%88%97%E8%A1%A8)
- [可自定义页脚](https://redefine-docs.ohevan.com/footer)
- [网站运行时间显示](https://redefine-docs.ohevan.com/footer#%E8%BF%90%E8%A1%8C%E6%97%B6%E9%97%B4)
- [文章头图](https://redefine-docs.ohevan.com/article_customize/banner)
- [Mermaid JS 支持](https://redefine-docs.ohevan.com/plugins/mermaid)
- SEO 友好
- [Aplayer 音乐播放器支持](https://redefine-docs.ohevan.com/plugins/aplayer)
- [说说模块](https://redefine-docs.ohevan.com/shuoshuo)
- [自定义字体](https://redefine-docs.ohevan.com/basic/global#%E8%87%AA%E5%AE%9A%E4%B9%89%E5%AD%97%E4%BD%93)
- Tailwind CSS 支持
## ☁️ 安装
如果你的 Hexo 版本在 `5.0` 及以上,推荐通过 `npm` 安装
```sh
$ cd your-hexo-site
$ npm install hexo-theme-redefine@latest
```
或者使用 git 克隆
```sh
$ cd your-hexo-site
$ git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
```
安装完成后,在 Hexo 配置文件 `_config.yml` 中将 `theme` 设置为 `Redefine`。
```yaml
theme: redefine
```
## ⏫ 更新
Theme Redefine 经常发布新版本,你可以通过如下命令更新 Theme Redefine。
通过 `npm` 安装最新版本:
```sh
$ npm install hexo-theme-redefine@latest
```
通过 `git` 更新到最新的 `main` 分支:
```sh
$ cd themes/redefine
$ git pull
```
## 📄 文档
请阅读 [Redefine 主题官方文档](https://redefine-docs.ohevan.com/) 进行主题配置与安装,非常简单易懂。
## ☕ 支持
欢迎 **pull request** 或者 提交 **issues**.
如有问题,请发邮件到 [contact@ohevan.com](mailto:contact@ohevan.com). 我会及时回复
如果你觉得主题还不错的话,欢迎给我 Github 点个 Star,谢谢。建议点个 Watch,以便及时获取主题更新。
如果你在使用 [Typora](https://typora.io/) 编辑器写文章,欢迎查看我写的 [Typora Redefine 主题](https://github.com/EvanNotFound/typora-theme-redefine),按照本 Hexo 主题样式编写,让你可以直接预览文章效果,更好排版。
## 💗 赞助
非常感谢所有赞助者的支持,你们的支持是我维护这个项目的动力。
如果你觉得这个项目还不错,欢迎给我[买杯咖啡](https://github.com/EvanNotFound/hexo-theme-redefine/blob/dev/DONATION.md),让我更有动力维护这个项目。
所有赞助者名单:[赞助者名单](https://github.com/EvanNotFound/hexo-theme-redefine/blob/dev/DONATION.md)
🎉 **ChatGPT Plus 会员,每月仅需 23.9 元!省下官网 20 美元/月**\
👉 [立即体验 GPT Plus 共享站](https://www.gptplus.ca/home)
- ✅ **官方正版账号池**,支持 GPT-5.2 / GPT-5.2 Pro 等最新模型,Sora 2 视频/图片生成
- ✅ **国内直接访问**,无需梯子,即开即用
- ✅ **免费试用一天**,满意再付款,零风险体验
- ✅ 高级语音对话 + 超高对话上限,随便问不心疼
- ✅ 运营两年老站,售后有保障,Evan 亲自维护
[](https://www.gptplus.ca/home)
👨💻 **AI 编程助手,让效率翻倍!Arc Codex 一站式编程平台**\
💰 注册即送 $5 美元额度,首月套餐仅 ¥15.9 起!\
👉 [立即体验 Arc Codex](https://www.arccodex.com)
- ✅ 支持 GPT-5.3-codex 等最新编程模型,代码生成更精准
- ✅ 每日 \$40 美元额度自动重置,月总额高达 \$1200,随便用不封顶
- ✅ 标准版首月仅 15.9 元,远低于官网价,同时使用优惠码 `REDEFINE`,续费享 **8折** 优惠!
- ✅ Evan 运营保障,不满意包退,无后顾之忧
[](https://www.arccodex.com)
## 🌟 Star 记录
<a href="https://star-history.com/#EvanNotFound/hexo-theme-redefine&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=EvanNotFound/hexo-theme-redefine&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=EvanNotFound/hexo-theme-redefine&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=EvanNotFound/hexo-theme-redefine&type=Date" />
</picture>
</a>
## 💻 主题开发
如果你想参与主题开发,请 `clone` 本项目的 `dev` 分支,然后在 `dev` 分支上进行开发。
同时,请查看 [Redefine 主题开发文档](https://redefine-docs.ohevan.com/developer)。