Skip to content

Commit

Permalink
样式表更新,新增四套主题色,Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cofess committed Nov 12, 2017
1 parent 265413c commit 87603d3
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 8 deletions.
24 changes: 22 additions & 2 deletions README.cn.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# pure

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

![](https://raw.githubusercontent.com/cofess/hexo-theme-pure/master/screenshot/pure.png)
![](screenshot/pure.png)

## 特色

Expand All @@ -12,6 +12,16 @@ A brand new default theme for [[Hexo](https://hexo.io)]. [Preview](http://cofes
- Categories page
- Social Media

## 主题颜色

![](screenshot/pure-theme-black.png)

![](screenshot/pure-theme-blue.png)

![](screenshot/pure-theme-green.png)

![](screenshot/pure-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/)
Expand Down Expand Up @@ -62,6 +72,16 @@ npm install hexo-generator-baidu-sitemap --save
```
## 主题配置

### 主题颜色

定制了五套颜色,默认白,黑:theme-black,蓝:theme-blue,绿:theme-green,紫:theme-purple

```
# config
config:
skin: # 主题颜色 theme-black theme-blue theme-green theme-purple
```

### 导航菜单

```
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# pure

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

![](https://raw.githubusercontent.com/cofess/hexo-theme-pure/master/screenshot/pure.png)
![](screenshot/pure.png)

## Features

Expand All @@ -12,6 +12,16 @@ A brand new default theme for [[Hexo](https://hexo.io)]. [Preview](http://cofes
- Categories page
- Social Media

## Skins

![](screenshot/pure-theme-black.png)

![](screenshot/pure-theme-blue.png)

![](screenshot/pure-theme-green.png)

![](screenshot/pure-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/)
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ site:

# config
config:
skin: # 主题颜色 theme-black theme-blue theme-green theme-purple
layout: main-center # 布局方式 main-left main-center main-right
toc: true # 是否开启文章章节目录导航
menu_highlight: false # 是否开启当前菜单高亮显示
Expand Down
1 change: 1 addition & 0 deletions _config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ site:

# config
config:
skin: theme-black # 主题颜色 theme-black theme-blue theme-green theme-purple
layout: main-center # 布局方式 main-left main-center main-right
toc: true # 是否开启文章章节目录导航
menu_highlight: false # 是否开启当前菜单高亮显示
Expand Down
2 changes: 1 addition & 1 deletion layout/_common/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<% var profile = theme.profile; %>
<div class="profile-block text-center">
<a id="avatar" href="<%= profile.follow %>" target="_blank">
<img class="thumb-xl img-circle img-rotate" src="<%= ( profile.gravatar ? gravatar(profile.gravatar, 128) : url_for(profile.avatar)) %>" width="200" height="200">
<img class="img-circle img-rotate" src="<%= ( profile.gravatar ? gravatar(profile.gravatar, 128) : url_for(profile.avatar)) %>" width="200" height="200">
</a>
<h2 id="name" class="hidden-xs hidden-sm"><%= profile.author %></h2>
<h3 id="title" class="hidden-xs hidden-sm hidden-md"><%= profile.author_title %></h3>
Expand Down
2 changes: 1 addition & 1 deletion layout/_search/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="input-group">
<input type="text" class="search-form-input form-control" placeholder="<%= __('widget.search') %>" />
<span class="input-group-btn">
<button type="submit" class="search-form-submit btn btn-flat"><i class="fa fa-search"></i></button>
<button type="submit" class="search-form-submit btn btn-flat" onclick="return false;"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
Expand Down
3 changes: 3 additions & 0 deletions layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
if (theme.config.layout) {
bodyClass = theme.config.layout;
}
if (theme.config.skin) {
bodyClass += ' ' + theme.config.skin;
}
bodyClass = page.sidebar === 'none' ? (bodyClass + ' no-sidebar') : bodyClass;
%>
<body class="<%= bodyClass %>" itemscope itemtype="http://schema.org/WebPage">
Expand Down
Binary file added screenshot/pure-theme-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/pure-theme-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/pure-theme-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/pure-theme-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/pure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshot/pure.psd
Binary file not shown.
4 changes: 2 additions & 2 deletions source/css/style.css

Large diffs are not rendered by default.

0 comments on commit 87603d3

Please sign in to comment.