hexo-theme-keep/README.md

108 lines
3.8 KiB
Markdown
Raw Normal View History

2020-11-20 12:02:22 +08:00
<div align="right">
Language:
English
2022-09-28 10:57:29 +08:00
<a title="Chinese" href="docs/README_zh-CN.md">简中</a>
<a title="Chinese" href="docs/README_zh-TW.md">繁中</a>
2020-11-20 12:02:22 +08:00
</div>
2020-03-12 19:35:27 +08:00
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-03-12 19:35:27 +08:00
2020-11-26 09:24:53 +08:00
«Keep» is a simple and elegant [Hexo](https://hexo.io) theme. It makes you more focused on writing.
2020-05-17 17:35:48 +08:00
2020-11-24 10:53:19 +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)
2020-03-26 14:55:19 +08:00
2020-11-26 09:24:53 +08:00
## :star2: Online Preview
2020-05-17 17:35:48 +08:00
2020-11-20 15:36:26 +08:00
- **[XPoet's Blog](https://xpoet.cn/)**
2021-03-01 10:32:04 +08:00
- **[Keep demo website](https://keep.xpoet.cn/)**
2022-09-28 10:57:29 +08:00
> If you want to put a link to your blog in the online preview list, you can give the author a PR.
2020-05-17 17:35:48 +08:00
2020-11-20 12:02:22 +08:00
## :rocket: Installation
2020-05-26 23:32:38 +08:00
2020-11-20 12:02:22 +08:00
If you're using Hexo 5.0 or later, the simplest way to install is through npm:
2020-05-17 17:35:48 +08:00
2020-11-20 12:02:22 +08:00
```sh
2022-09-28 10:57:29 +08:00
# recommend
2020-11-20 12:02:22 +08:00
$ cd hexo-site
$ npm install hexo-theme-keep
2020-09-01 18:31:43 +08:00
```
2020-04-08 17:30:05 +08:00
2020-11-20 12:02:22 +08:00
Or you can clone the entire repository:
2020-04-15 09:29:19 +08:00
2020-11-20 12:02:22 +08:00
```sh
$ cd hexo-site
$ git clone https://github.com/XPoet/hexo-theme-keep themes/keep
```
2020-11-17 18:52:41 +08:00
2020-11-20 12:02:22 +08:00
After the installation, open Hexo config file and set `theme` variable to `keep`.
2020-09-11 15:58:10 +08:00
2020-04-08 17:30:05 +08:00
```yml
2020-11-20 12:02:22 +08:00
theme: keep
2020-04-08 17:30:05 +08:00
```
2020-03-12 19:35:27 +08:00
2020-12-10 12:23:30 +08:00
## :wrench: Usage
2020-04-15 09:29:19 +08:00
2021-03-01 10:32:04 +08:00
Please see the official documents of «Keep».
2020-04-15 09:57:24 +08:00
2021-03-01 10:32:04 +08:00
- **[Keep official document](https://keep-docs.xpoet.cn/)**
- **[Keep theme configuration guide](https://keep-docs.xpoet.cn/usage-tutorial/configuration-guide.html)**
- **[Keep theme advanced usage](https://keep-docs.xpoet.cn/usage-tutorial/advanced.html)**
2020-04-15 09:29:19 +08:00
2020-12-10 12:23:30 +08:00
It is not recommended to directly modify any files in the «Keep» theme. Because this may cause errors (e.g. merge conflicts), and the modified files may be discarded when upgrading the theme.
2020-04-15 09:57:24 +08:00
2020-11-20 12:02:22 +08:00
## :dart: Update
2020-04-15 09:29:19 +08:00
2020-11-20 12:02:22 +08:00
«Keep» releases new versions from time to time. You can update Keep by the following command.
2020-04-15 09:29:19 +08:00
2020-11-20 12:02:22 +08:00
Install the latest version throuth npm:
2020-04-15 09:57:24 +08:00
2020-11-20 12:02:22 +08:00
```sh
2022-09-28 10:57:29 +08:00
# recommend
2020-11-20 12:02:22 +08:00
$ cd hexo-site
$ npm update hexo-theme-keep
2020-04-15 09:29:19 +08:00
```
2020-11-20 12:02:22 +08:00
Or update to latest master branch:
2020-09-11 15:58:10 +08:00
2020-11-20 12:02:22 +08:00
```sh
$ cd themes/keep
2021-04-29 11:48:45 +08:00
$ git pull
```
2020-11-20 12:02:22 +08:00
## :art: Contributing
2020-09-14 16:37:38 +08:00
2020-12-01 16:54:34 +08:00
We welcome you to join the development of «Keep». Please see [contributing guide](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/).
2020-09-14 16:37:38 +08:00
2020-11-20 12:02:22 +08:00
## :clapper: Contributors
2020-09-14 16:37:38 +08:00
2020-11-20 12:02:22 +08:00
This project exists thanks to all the people who contribute.
2020-09-14 16:37:38 +08:00
2020-11-20 12:02:22 +08:00
<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>
2020-09-11 15:58:10 +08:00
2020-11-20 12:02:22 +08:00
## :sparkling_heart: Thanks
2020-09-11 15:58:10 +08:00
2020-11-20 12:02:22 +08:00
«Keep» send special thanks to these great services that sponsor our core infrastructure:
2020-11-17 23:17:32 +08:00
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-04-15 09:29:19 +08:00
2020-11-20 12:02:22 +08:00
> GitHub allows us to host the Git repository and run the test suite.
2020-03-12 19:35:27 +08:00
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-04-15 09:29:19 +08:00
2022-09-28 11:07:26 +08:00
> Thanks jsDelivr and UNPKG for providing public CDN service.
2021-01-05 16:34:33 +08:00
## :memo: License
2022-09-28 11:07:26 +08:00
[GPL-3.0](https://github.com/XPoet/hexo-theme-keep/blob/master/LICENSE) Copyright © 2020-present XPoet
2021-01-05 16:34:33 +08:00