Skip to content

Commit

Permalink
Merge pull request #6 from Ruffianjiang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Ruffianjiang authored Jan 12, 2021
2 parents e71a0ba + 9253d40 commit abad5f9
Show file tree
Hide file tree
Showing 97 changed files with 19,636 additions and 156 deletions.
73 changes: 47 additions & 26 deletions README.cn.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,70 @@
# dawn

A brand new default theme for [[Hexo](https://hexo.io)]. [Preview](http://cofess.github.io/) | [English documentation](README.md) | [iconfont](http://blog.cofess.com/hexo-theme-pure/iconfont/demo_fontclass.html)
A brand new default theme for [[Hexo](https://hexo.io)].
[Preview](http://Ruffianjiang.github.io/) |
[English documentation](README.md) |
[iconfont](http://blog.cofess.com/hexo-theme-pure/iconfont/demo_fontclass.html)

![](doc/images/dawn.png)
![](_doc/images/dawn.png)

## 特色

- 多语言
- 第三方评论框(友言、来必力、gitment、gitalk)
- 可展示个人豆瓣书单
- 可展示个人github托管项目
- 可设置支付宝、微信打赏

## 主题颜色

![](doc/images/dawn-theme-black.png)
![](_doc/images/dawn-theme-black.png)

![](doc/images/dawn-theme-blue.png)
![](_doc/images/dawn-theme-blue.png)

![](doc/images/dawn-theme-green.png)
![](_doc/images/dawn-theme-green.png)

![](doc/images/dawn-theme-purple.png)
![](_doc/images/dawn-theme-purple.png)

## 页面展示

[首页](http://cofess.github.io/) | [归档](http://cofess.github.io/archives/) | [分类](http://cofess.github.io/categories/) | [标签](http://cofess.github.io/tags/) | [项目](http://cofess.github.io/repository/) | [书单](http://cofess.github.io/books/) | [友链](http://cofess.github.io/links/) | [关于](http://cofess.github.io/about/)
[首页](http://Ruffianjiang.github.io/) |
[归档](http://Ruffianjiang.github.io/archives/) |
[分类](http://Ruffianjiang.github.io/categories/) |
[标签](http://Ruffianjiang.github.io/tags/) |
[项目](http://Ruffianjiang.github.io/repository/) |
[友链](http://Ruffianjiang.github.io/links/) |
[关于](http://Ruffianjiang.github.io/about/)

## 配置说明
## 快速开始
> 在 Hexo中有两份主要的配置文件,其名称都是 _config.yml。 其中,一份位于站点根目录下,主要包含 Hexo 本身的配置;另一份位于主题目录下,这份配置由主题作者提供,主要用于配置主题相关的选项。为了描述方便,在以下说明中,将前者称为站点配置文件, 后者称为主题配置文件。
在 Hexo 中有两份主要的配置文件,其名称都是 _config.yml。 其中,一份位于站点根目录下,主要包含 Hexo 本身的配置;另一份位于主题目录下,这份配置由主题作者提供,主要用于配置主题相关的选项。为了描述方便,在以下说明中,将前者称为站点配置文件, 后者称为主题配置文件

## 安装主题

```
git clone https://github.com/cofess/hexo-theme-pure.git themes/dawn
第一步、站点根目录下执行如下命令,下载主题
```shell
git clone https://github.com/Ruffianjiang/hexo-theme-dawn.git themes/dawn
```
## 更新主题

```
需要更新时,使用如下命令
```shell
cd themes/dawn
git pull
```
## 启用dawn主题

打开站点配置文件,找到theme字段,将其值更改为 dawn
第二步、主题目录下配置文件`_config.yml`复制一份到站点目录下,重命名为`_config.dawn.yml`
> `_config.yml``_config.dawn.yml.light`内容一致,为轻量配置,开箱即用,建议初次安装使用此配置,`_config.dawn.yml.all`为全部配置,需要安装一些插件,推荐部署好站点后,需要定制插件时,作为参考使用
```
第三步、打开站点目录下的配置文件`_config.yml`,找到`theme`字段,将其值更改为`dawn`
```yaml
theme: dawn
```
到此,主题安装完成。然后启动Hexo服务验证主题是否正确启用。

```
hexo s
第四步、编译并启动
```shell
hexo clean & hexo generate & hexo serve
```

访问`localhost:4000`现在来看看你的博客吧~~

其他定制功能,请访问 [wiki](https://github.com/Ruffianjiang/hexo-theme-dawn/wiki)

## 安装插件

### [hexo-wordcount](https://github.com/willin/hexo-wordcount)
Expand Down Expand Up @@ -82,6 +92,17 @@ npm install hexo-generator-sitemap --save
```
npm install hexo-generator-baidu-sitemap --save
```

### [hexo-generator-baidu-sitemap](https://github.com/coneycode/hexo-generator-baidu-sitemap)

```
npm install hexo-bilibili-bangumi --save
更新数据命令:hexo bangumi -u
删除数据命令:hexo bangumi -d
```



## 主题配置

### 设置语言
Expand Down Expand Up @@ -164,7 +185,7 @@ share:

### 评论

主题集成了[disqus](https://disqus.com/)[友言](http://www.uyan.cc/)[来必力](https://livere.com/)[gitment](https://github.com/imsun/gitment)[gitalk](https://github.com/gitalk/gitalk)评论系统,选择其中一种即可
主题集成了[disqus](https://disqus.com/) [友言](http://www.uyan.cc/) [来必力](https://livere.com/) [gitment](https://github.com/imsun/gitment) [gitalk](https://github.com/gitalk/gitalk) 评论系统,选择其中一种即可

```
# Comment
Expand Down Expand Up @@ -377,4 +398,4 @@ markdown_it_plus:
```markdown
title: Hello World
mathjax: true
```
```
58 changes: 41 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# dawn

A brand new default theme for [[Hexo](https://hexo.io)]. [Preview](http://cofess.github.io/) | [中文说明文档](README.cn.md) | [iconfont](http://blog.cofess.com/hexo-theme-pure/iconfont/demo_fontclass.html)
A brand new default theme for [[Hexo](https://hexo.io)].
[Preview](http://Ruffianjiang.github.io/) | [中文说明文档](README.cn.md) | [iconfont](http://blog.cofess.com/hexo-theme-pure/iconfont/demo_fontclass.html)

![](doc/images/dawn.png)
![](_doc/images/dawn.png)

## Features

Expand All @@ -14,35 +15,58 @@ A brand new default theme for [[Hexo](https://hexo.io)]. [Preview](http://cofes

## Skins

![](doc/images/dawn-theme-black.png)
![](_doc/images/dawn-theme-black.png)

![](doc/images/dawn-theme-blue.png)
![](_doc/images/dawn-theme-blue.png)

![](doc/images/dawn-theme-green.png)
![](_doc/images/dawn-theme-green.png)

![](doc/images/dawn-theme-purple.png)
![](_doc/images/dawn-theme-purple.png)

## Appearance

[Home](http://cofess.github.io/) | [Archives](http://cofess.github.io/archives/) | [Categories](http://cofess.github.io/categories/) | [Tags](http://cofess.github.io/tags/) | [Repository](http://cofess.github.io/repository/) | [Books](http://cofess.github.io/books/) | [Links](http://cofess.github.io/links/) | [About](http://cofess.github.io/about/)
[Home](http://Ruffianjiang.github.io/) |
[Archives](http://Ruffianjiang.github.io/archives/) |
[Categories](http://Ruffianjiang.github.io/categories/) |
[Tags](http://Ruffianjiang.github.io/tags/) |
[Repository](http://Ruffianjiang.github.io/repository/) |
[Books](http://Ruffianjiang.github.io/books/) |
[Links](http://Ruffianjiang.github.io/links/) |
[About](http://Ruffianjiang.github.io/about/)

## Install theme
## Quick start
> 在 Hexo中有两份主要的配置文件,其名称都是 _config.yml。 其中,一份位于站点根目录下,主要包含 Hexo 本身的配置;另一份位于主题目录下,这份配置由主题作者提供,主要用于配置主题相关的选项。为了描述方便,在以下说明中,将前者称为站点配置文件, 后者称为主题配置文件。
Execute the following command under your `hexo` folder.

```
git clone https://github.com/cofess/hexo-theme-pure.git themes/dawn
第一步、站点根目录下执行如下命令,下载主题
```shell
git clone https://github.com/Ruffianjiang/hexo-theme-dawn.git themes/dawn
```
Then modify the property `theme` of the file `hexo/_config.yml` to `theme: dawn`

## Update theme
需要更新时,使用如下命令
```shell
cd themes/dawn
git pull
```

Execute the following command to update theme.
第二步、主题目录下配置文件`_config.yml`复制一份到站点目录下,重命名为`_config.dawn.yml`
> `_config.yml``_config.dawn.yml.light`内容一致,为轻量配置,开箱即用,建议初次安装使用此配置,`_config.dawn.yml.all`为全部配置,需要安装一些插件,推荐部署好站点后,需要定制插件时,作为参考使用
第三步、打开站点目录下的配置文件`_config.yml`,找到`theme`字段,将其值更改为`dawn`
```yaml
theme: dawn
```
cd themes/dawn
git pull
第四步、编译并启动
```shell
hexo clean & hexo generate & hexo serve
```

访问`localhost:4000`现在来看看你的博客吧~~

其他定制功能,请访问 [wiki](https://github.com/Ruffianjiang/hexo-theme-dawn/wiki)



## Install plugin

### [hexo-wordcount](https://github.com/willin/hexo-wordcount)
Expand Down
Loading

0 comments on commit abad5f9

Please sign in to comment.