Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加 hexo-theme-redefine 主题安装文档 #262

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/.vuepress/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ themeConfig:
hexo-theme-phantom: /2-Theme-use-and-config/2-17-hexo-theme-phantom/
hexo-theme-archer: /2-Theme-use-and-config/2-18-hexo-theme-archer/
hexo-theme-ayer: /2-Theme-use-and-config/2-19-hexo-theme-ayer/
hexo-theme-redefine: /2-Theme-use-and-config/2-20-hexo-theme-redefine/
插件使用与配置:
概要: /3-Plugins-use-and-config/
hexo-tag-aplayer: /3-Plugins-use-and-config/3-1-hexo-tag-aplayer/
Expand Down
92 changes: 92 additions & 0 deletions docs/2-Theme-use-and-config/2-20-hexo-theme-redefine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# hexo-theme-redefine

"Redefine" 是一个简洁、快速、纯净的 hexo 主题。简洁,但不简单。本主题包含很多广泛使用的功能,并拥有着优秀的设计。

GitHub: https://github.com/EvanNotFound/hexo-theme-redefine

[![NPM version](https://img.shields.io/npm/v/hexo-theme-redefine?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-redefine) [![npm](https://img.shields.io/npm/dw/hexo-theme-redefine?logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-redefine) [![npm-total](https://img.shields.io/npm/dt/hexo-theme-redefine?logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-redefine) [![Github License](https://img.shields.io/github/license/EvanNotFound/hexo-theme-redefine.svg?style=flat-square)](https://github.com/EvanNotFound/hexo-theme-redefine/blob/main/LICENSE) [![Required Hexo version](https://img.shields.io/badge/hexo-%3E=5.0.0-blue?style=flat-square&logo=hexo)](https://hexo.io) [![Node.js Version](https://img.shields.io/badge/node-%3E=12.0-success.svg?style=flat-square&logo=Node.js&longCache=true)](https://hexo.io)



## 📷 屏幕截图

![redefine-1-final](https://user-images.githubusercontent.com/68590232/216494120-c2021614-118d-4554-aa07-06bc96631e8f.png)
![redefine-2-final](https://user-images.githubusercontent.com/68590232/216494132-76586fad-e959-401c-b0b7-25e5f187dc39.png)
![redefine-3-final](https://user-images.githubusercontent.com/68590232/216494137-d25d02e5-c7d2-4fc8-932f-bd9aee6e874f.png)


## 🌐 官方演示站

- [EvanNotFound's Blog](https://ohevan.com)
- [Theme Redefine Demo](https://redefine.ohevan.com)
- [Redefine 用户墙](https://redefine.ohevan.com/showcase)

如果你也在使用 Redefine,欢迎在前往 [Redefine 用户墙](https://redefine.ohevan.com/showcase) 添加你的博客链接。

## ⛰️ 部分功能

- [笔记模块](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/note-module)
- [友链样式](https://redefine-docs.ohevan.com/docs/advanced/friend-link)
- [数学公式](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mathjax)
- 代码块语言显示
- Light/Dark 模式切换
- [Font Awesome 6.1.0 Pro](https://redefine-docs.ohevan.com/docs/configuration-guide/fontawesome)(包含 Duotone/Regular/Thin 等不同样式)
- [下拉菜单](https://redefine-docs.ohevan.com/docs/configuration-guide/menu)
- [可自定义页脚](https://redefine-docs.ohevan.com/docs/configuration-guide/footer)
- [网站运行时间显示](https://redefine-docs.ohevan.com/docs/configuration-guide/footer)
- [文章头图](https://redefine-docs.ohevan.com/docs/advanced/home-contents/thumbnail)
- [Mermaid JS 支持](https://redefine-docs.ohevan.com/docs/advanced/writing-modules/mermaid)
- SEO 友好
- [Aplayer 音乐播放器支持](https://redefine-docs.ohevan.com/docs/advanced/theme-plugins/aplayer)

## ☁️ 安装

如果你的 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
$ git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
```



## 📄 文档

请阅读 [Redefine 主题官方文档](https://redefine-docs.ohevan.com/) 进行主题配置与安装,非常简单易懂。

## ☕ 支持

欢迎 **pull request** 或者 提交 **issues**.

如有问题,请发邮件到 [[email protected]](mailto:[email protected]). 我会及时回复
3 changes: 2 additions & 1 deletion docs/2-Theme-use-and-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ title: 主题使用与配置
- [hexo-theme-stun](2-16-hexo-theme-stun)
- [hexo-theme-phantom](2-17-hexo-theme-phantom)
- [hexo-theme-ayer](2-19-hexo-theme-ayer)
- [hexo-theme-redefine](2-20-hexo-theme-redefine)

还有许多优秀主题由于各种原因没有收录:
- [hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)
- [hexo-theme-next](https://github.com/theme-next/hexo-theme-next)

同时,我们也欢迎各位给我们贡献其他主题文档,可先阅读 [CONTRIBUTING](https://github.com/EasyHexo/Easy-Hexo/blob/master/.github/CONTRIBUTING.md)。
同时,我们也欢迎各位给我们贡献其他主题文档,可先阅读 [CONTRIBUTING](https://github.com/EasyHexo/Easy-Hexo/blob/master/.github/CONTRIBUTING.md)。