-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
223 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,29 @@ | |
|
||
![hexo-diy-strict](diy-strict.jpg) | ||
|
||
diy-strict是基于[strict主题](https://github.com/unmric/hexo-theme-strict)修改而成,在strict基础上进行了如下修改: | ||
![hexo-diy-strict-article](diy-strict-article.jpg) | ||
|
||
hexo-diy-strict是基于[strict](https://github.com/unmric/hexo-theme-strict)主题修改而成,在strict基础上进行了如下修改: | ||
|
||
### 2015.01.08更新 | ||
1. 文章页增加文章结构目录(catalog widget) | ||
2. 增加返回顶部代码 | ||
3. 修复多说评论框不显示bug | ||
4. 调整部分样式 | ||
|
||
### 2014.05.02更新 | ||
1. 增加了对IE7的兼容 | ||
2. 将布局改为两栏式 | ||
3. 增加了部分widget(about/categories/links) | ||
4. 使用多说作为默认评论组件,hexo-diy-strict/_config.yml中填写多说的`short_name` | ||
4. 使用多说作为默认评论组件,hexo-diy-strict/_config.yml中填写多说的`short_name` | ||
5. 其它细节处的样式调整 | ||
|
||
## Installation | ||
|
||
**Install** | ||
``` | ||
$ npm install hexo-renderer-jade --save | ||
$ git clone [email protected]:Bubblings/hexo-diy-strict.git themes/strict | ||
$ git clone [email protected]:8788/hexo-diy-strict.git themes/hexo-diy-strict | ||
``` | ||
|
||
**Enable** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
include ../_widgets/about | ||
include ../_widgets/categories | ||
include ../_widgets/links | ||
- if (page.layout == 'post') | ||
include ../_widgets/categories | ||
include ../_widgets/catalog | ||
- else | ||
include ../_widgets/about | ||
include ../_widgets/categories | ||
include ../_widgets/links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
div#back-top(title="返回顶部") | ||
script(src="/js/script.js") | ||
if theme.cnzz_id | ||
<script src="http://v1.cnzz.com/stat.php?id=#{theme.cnzz_id}&web_id=#{theme.cnzz_id}" language="JavaScript"></script> | ||
<script src="http://s11.cnzz.com/stat.php?show=pic1&id=#{theme.cnzz_id}&web_id=#{theme.cnzz_id}" language="JavaScript"></script> | ||
|
||
block foot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.widget.fixed#fixed | ||
.catalog | ||
h2 目录结构 | ||
ul.catalog-list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
include _views/post | ||
extends _views/main | ||
- if (page.layout == 'page') | ||
include _views/post | ||
extends _views/main | ||
|
||
block main | ||
+post(page, 'post') | ||
if config.disqus_shortname && page.comments | ||
div.comments | ||
div.disqus_thread | ||
block main | ||
+post(page, 'post') | ||
if theme.duoshuo_short_name && page.comments | ||
div.comments | ||
div.ds-thread(data-thread-key=page.dsThreadKey) | ||
if theme.duoshuo_short_name | ||
|
||
block head | ||
title | ||
= page.title + ' - ' + config.title | ||
<!-- 多说公共JS代码 start (一个网页只需插入一次) --> | ||
script. | ||
var duoshuoQuery = {short_name:"#{theme.duoshuo_short_name}"}; | ||
(function() { | ||
var ds = document.createElement('script'); | ||
ds.type = 'text/javascript';ds.async = true; | ||
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; | ||
ds.charset = 'UTF-8'; | ||
document.getElementsByTagName('body')[0].appendChild(ds); | ||
})(); | ||
<!-- 多说公共JS代码 end --> | ||
block head | ||
title | ||
= page.title + ' - ' + config.title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "Strict", | ||
"name": "hexo-diy-strict", | ||
"version": "0.1.1", | ||
"description": "A clean, minimal and responsive theme for hexo", | ||
"author": "unmric", | ||
"author": "8788 && unmric", | ||
"license": "MIT" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.