hexo-theme-keep/docs/README_zh-CN.md

108 lines
3.7 KiB
Markdown
Raw Permalink Normal View History

2020-11-20 12:02:22 +08:00
<div align="right">
语言:
2023-01-10 17:42:57 +08:00
简体中文 |
<a title="English" href="../README.md">English</a> |
<a title="Chinese" href="README_zh-TW.md">繁體中文</a>
2020-11-20 12:02:22 +08:00
</div>
2021-01-12 15:37:30 +08:00
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
2020-11-20 18:18:56 +08:00
2021-01-05 16:34:33 +08:00
# hexo-theme-keep
2020-11-20 12:02:22 +08:00
2020-11-26 09:24:53 +08:00
«Keep» 是一款简约优雅的 [Hexo](https://hexo.io) 主题。它能让你更专注于写作。
2020-11-20 12:02:22 +08:00
2020-12-08 11:04:52 +08:00
[![Github License](https://img.shields.io/github/license/XPoet/hexo-theme-keep.svg?style=flat-square)](https://github.com/XPoet/hexo-theme-ils/blob/master/LICENSE)
[![Github Release](https://img.shields.io/github/release/XPoet/hexo-theme-keep.svg?style=flat-square)](https://github.com/XPoet/hexo-theme-ils/releases)
2020-11-20 12:02:22 +08:00
[![NPM version](https://img.shields.io/npm/v/hexo-theme-keep?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-keep)
[![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=14.0-success.svg?style=flat-square&logo=Node.js&longCache=true)](https://hexo.io)
2020-11-20 12:02:22 +08:00
[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/hexo-theme-keep?style=flat-square&logo=jsdelivr)](https://www.jsdelivr.com/package/npm/hexo-theme-keep)
## :star2: 在线预览
2020-11-20 15:36:26 +08:00
- **[XPoet's Blog](https://xpoet.cn/)**
2021-03-01 10:32:04 +08:00
- **[keep 演示网站](https://keep.xpoet.cn/)**
2022-09-28 10:57:29 +08:00
> 如果你想把自己的博客链接放在在线预览列表里,可以给作者提 PR 。
2020-11-20 12:02:22 +08:00
## :rocket: 安装
2020-12-25 17:38:05 +08:00
如果你在使用 Hexo 5.0 或更高版本,最简单的安装方式是通过 npm
2020-11-20 12:02:22 +08:00
```sh
2022-09-28 10:57:29 +08:00
# 推荐
2020-11-20 12:02:22 +08:00
$ cd hexo-site
$ npm install hexo-theme-keep
```
你也可以直接克隆整个仓库:
```sh
$ cd hexo-site
2022-09-28 10:57:29 +08:00
$ git clone https://github.com/XPoet/hexo-theme-keep --depth=1 themes/keep
2020-11-20 12:02:22 +08:00
```
2021-01-05 18:20:30 +08:00
安装完成后,在 Hexo 配置文件中将 `theme` 设置为 `keep`
2020-11-20 12:02:22 +08:00
```yml
theme: keep
```
2020-12-10 12:23:30 +08:00
## :wrench: 使用
2020-11-20 12:02:22 +08:00
2021-03-01 10:32:04 +08:00
请查看 «Keep» 官方文档:
2020-11-20 12:02:22 +08:00
2021-03-01 10:32:04 +08:00
- **[Keep 官方文档](https://keep-docs.xpoet.cn/)**
2022-10-28 15:07:53 +08:00
- **[Keep 主题配置指南](https://keep-docs.xpoet.cn/tutorial/configuration-guide/base_info.html)**
- **[Keep 主题进阶使用](https://keep-docs.xpoet.cn/advanced/set-language.html)**
2020-11-20 12:02:22 +08:00
2020-12-10 12:23:30 +08:00
不推荐直接修改 «Keep» 主题的文件。因为这可能导致错误(例如 git merge 冲突),并且在升级主题时修改的文件可能丢失。
2020-11-20 12:02:22 +08:00
## :dart: 更新
2022-09-28 10:57:29 +08:00
«Keep» 不定期发布新版本,你可以通过如下命令更新 «Keep»。
2020-11-20 12:02:22 +08:00
通过 npm 安装最新版本:
```sh
2022-09-28 10:57:29 +08:00
# 推荐
2020-11-20 12:02:22 +08:00
$ cd hexo-site
2022-11-03 21:12:06 +08:00
$ npm install hexo-theme-keep@latest
2020-11-20 12:02:22 +08:00
```
或者通过 git 更新到最新的 master 分支:
```sh
$ cd themes/keep
2021-04-29 11:48:45 +08:00
$ git pull
```
2020-11-20 12:02:22 +08:00
## :art: 贡献
2022-09-28 10:57:29 +08:00
我们欢迎你加入 «Keep» 的开发,贡献出你的一份力量。请看 [Keep 代码贡献指南](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/)。
2020-11-20 12:02:22 +08:00
## :clapper: 贡献者
这个项目的存在多亏了所有的贡献者。
<a href="https://github.com/XPoet/hexo-theme-keep/graphs/contributors">
2022-10-21 17:04:23 +08:00
<img src="https://contrib.rocks/image?repo=XPoet/hexo-theme-keep" />
2020-11-20 12:02:22 +08:00
</a>
## :sparkling_heart: 鸣谢
«Keep» 特别感谢这些支持我们核心基础设施的优质服务:
2020-11-26 09:24:53 +08:00
<a href="https://github.com"><img height="38" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/GitHub-LOGO.5sq0168mirg0.png"></a>
2020-11-20 12:02:22 +08:00
> GitHub 容许我们托管 Git 仓库及运行测试。
2020-11-26 09:24:53 +08:00
<a href="https://www.jsdelivr.com"><img height="38" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/jsDelivr-LOGO.png"></a>
2020-11-20 12:02:22 +08:00
2022-09-28 11:07:26 +08:00
> jsDelivr 和 UNPKG 提供了 CDN 服务。
2021-01-05 16:34:33 +08:00
## :memo: 许可
2023-01-10 17:42:57 +08:00
[AGPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE)
Copyright © 2020-present XPoet