Skip to content
Permalink
Browse files
馃帀 first commit
  • Loading branch information
olOwOlo committed Aug 27, 2017
0 parents commit 3c6cb7f29631dfcdd954e7cbd5d2370efe7eb827
Showing with 4,288 additions and 0 deletions.
  1. +2 鈭0 .gitignore
  2. +20 鈭0 LICENSE.md
  3. +336 鈭0 README.md
  4. +21 鈭0 archetypes/default.md
  5. +37 鈭0 data/even/default.toml
  6. +37 鈭0 data/even/en.toml
  7. +37 鈭0 data/even/zh-CN.toml
  8. +18 鈭0 layouts/404.html
  9. +39 鈭0 layouts/_default/baseof.html
  10. +56 鈭0 layouts/_default/section.html
  11. +7 鈭0 layouts/_default/single.html
  12. +1 鈭0 layouts/_default/single.md
  13. +47 鈭0 layouts/_default/taxonomy.html
  14. +45 鈭0 layouts/_default/terms.html
  15. +25 鈭0 layouts/index.html
  16. +35 鈭0 layouts/partials/comments.html
  17. +37 鈭0 layouts/partials/footer.html
  18. +71 鈭0 layouts/partials/head.html
  19. +13 鈭0 layouts/partials/header.html
  20. +33 鈭0 layouts/partials/post/copyright.html
  21. +19 鈭0 layouts/partials/post/reward.html
  22. +8 鈭0 layouts/partials/post/toc.html
  23. +55 鈭0 layouts/partials/scripts.html
  24. +19 鈭0 layouts/partials/slideout.html
  25. +64 鈭0 layouts/post/single.html
  26. +27 鈭0 layouts/post/summary.html
  27. +2 鈭0 layouts/robots.txt
  28. +62 鈭0 layouts/shortcodes/music.html
  29. +11 鈭0 layouts/sitemap.xml
  30. +12 鈭0 package.json
  31. +10 鈭0 src/.babelrc
  32. +98 鈭0 src/css/_base.scss
  33. +153 鈭0 src/css/_common/_animation.scss
  34. +427 鈭0 src/css/_common/_normalize.scss
  35. +23 鈭0 src/css/_common/_utils.scss
  36. +4 鈭0 src/css/_custom/_custom.scss
  37. +25 鈭0 src/css/_partial/_404.scss
  38. +101 鈭0 src/css/_partial/_archive.scss
  39. +24 鈭0 src/css/_partial/_back-to-top.scss
  40. +43 鈭0 src/css/_partial/_categories.scss
  41. +10 鈭0 src/css/_partial/_footer.scss
  42. +23 鈭0 src/css/_partial/_footer/_copyright.scss
  43. +19 鈭0 src/css/_partial/_footer/_social.scss
  44. +19 鈭0 src/css/_partial/_header.scss
  45. +18 鈭0 src/css/_partial/_header/_logo.scss
  46. +35 鈭0 src/css/_partial/_header/_menu.scss
  47. +96 鈭0 src/css/_partial/_iconfont.scss
  48. +77 鈭0 src/css/_partial/_mobile.scss
  49. +36 鈭0 src/css/_partial/_pagination.scss
  50. +23 鈭0 src/css/_partial/_post.scss
  51. +177 鈭0 src/css/_partial/_post/_code.scss
  52. +101 鈭0 src/css/_partial/_post/_content.scss
  53. +17 鈭0 src/css/_partial/_post/_copyright.scss
  54. +74 鈭0 src/css/_partial/_post/_footer.scss
  55. +39 鈭0 src/css/_partial/_post/_header.scss
  56. +48 鈭0 src/css/_partial/_post/_reward.scss
  57. +46 鈭0 src/css/_partial/_post/_toc.scss
  58. +33 鈭0 src/css/_partial/_slideout.scss
  59. +46 鈭0 src/css/_partial/_tags.scss
  60. +343 鈭0 src/css/_variables.scss
  61. +19 鈭0 src/css/style.scss
  62. BIN src/fonts/chancery/apple-chancery-webfont.eot
  63. +228 鈭0 src/fonts/chancery/apple-chancery-webfont.svg
  64. BIN src/fonts/chancery/apple-chancery-webfont.ttf
  65. BIN src/fonts/chancery/apple-chancery-webfont.woff
  66. BIN src/fonts/chancery/apple-chancery-webfont.woff2
  67. +167 鈭0 src/js/even.js
  68. +14 鈭0 src/js/main.js
  69. +28 鈭0 src/package.json
  70. +56 鈭0 src/webpack.config.js
  71. +4 鈭0 static/dist/even.v2.5.0.css
  72. +1 鈭0 static/dist/even.v2.5.0.css.map
  73. +2 鈭0 static/dist/even.v2.5.0.js
  74. +1 鈭0 static/dist/even.v2.5.0.js.map
  75. BIN static/dist/fonts/chancery/apple-chancery-webfont.eot
  76. +228 鈭0 static/dist/fonts/chancery/apple-chancery-webfont.svg
  77. BIN static/dist/fonts/chancery/apple-chancery-webfont.ttf
  78. BIN static/dist/fonts/chancery/apple-chancery-webfont.woff
  79. BIN static/dist/fonts/chancery/apple-chancery-webfont.woff2
  80. BIN static/favicon.ico
  81. BIN static/img/reward/alipay.png
  82. BIN static/img/reward/wechat.png
  83. +1 鈭0 static/lib/fancybox/jquery.fancybox-3.1.20.min.css
  84. +12 鈭0 static/lib/fancybox/jquery.fancybox-3.1.20.min.js
  85. +2 鈭0 static/lib/highlight/highlight.pack.js
  86. +4 鈭0 static/lib/jquery/jquery-3.2.1.min.js
  87. +1 鈭0 static/lib/slideout/slideout-1.0.1.min.js
  88. +115 鈭0 static/sitemap.xsl
  89. +21 鈭0 theme.toml
@@ -0,0 +1,2 @@
/src/node_modules/
/.idea/
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2017 olOwOlo

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
336 README.md
@@ -0,0 +1,336 @@
# hugo-theme-even
A super simple theme for Hugo

> 璇ヤ富棰樺畬鍏ㄧЩ妞嶈嚜 [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
## Demo
[鍦ㄧ嚎棰勮 Demo](http://ahonn.github.io/)

## Feature
- 鑷畾涔夋牱寮
- 鏀寔 Fancybox
- 鐗堟潈淇℃伅锛岃嚜瀹氫箟璁稿彲鍗忚
- 鏂囩珷鎵撹祻锛屾坊鍔犱簩缁寸爜

## Screenshots
![even-screenshots](http://ouv0frko5.bkt.clouddn.com/eerqv.jpg)

## Installation
```bash
$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even
```

## Getting Start

> 鎷夎嚦鏈涓嬫湁涓浠藉畬鏁寸殑閰嶇疆鏂囦欢锛屼綘鍙互鎸夐渶鏇存敼
### 閰嶇疆绔欑偣鍩烘湰淇℃伅

```toml
baseURL = "http://localhost:1313"
languageCode = "zh-CN"
defaultContentLanguage = "zh-CN"
title = "olOwOlo"
enableRobotsTXT = true
enableEmoji = true
theme = "even"
# 棣栭〉鏄剧ず鐨勬枃绔犳潯鐩暟閲忥紝榛樿涓10锛堝彲閫夛級
paginate = 5
# Disqus Username锛堝彲閫夛級
disqusShortname = "disqus_shortname"
# Google Analytics UA number锛堝彲閫夛級
googleAnalytics = "UA-XXXXXXXX-X"
# Copyright of your post锛堝彲閫夛級
copyright = "<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/cn/\" target=\"_blank\" title=\"涓浗澶ч檰 (CC BY-NC-SA 3.0 CN)\">缃插悕-闈炲晢鐢-鐩稿悓鏂瑰紡鍏变韩 3.0</a>"
[author]
name = "olOwOlo"
[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
```

### 閰嶇疆鐩綍

**PS: Archives 鐨 url 涓 /post/**

```toml
[[menu.main]]
name = "Home"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "/post/"
[[menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
[[menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "/categories/"
[[menu.main]]
name = "About"
weight = 50
identifier = "about"
url = "/about/"
```

### 涓婚閰嶇疆

```toml
[params]
# 璇峰嬁鏇存敼
version = "2.5.0"
# 绔欑偣寤虹珛鏃堕棿
since = "2017"
# 绔欑偣淇℃伅锛堝彲閫夛級
keywords = ["olOwOlo", "blog", "鍗氬"]
description = "olOwOlo blog."
# 褰掓。銆佹爣绛俱佸垎绫绘瘡椤垫樉绀虹殑鏂囩珷鏁扮洰
archive-paginate = 50
# 涓浜涘叏灞寮鍏筹紙浣犲彲浠ュ湪姣忎竴绡囧唴瀹圭殑 front matter 涓崟鐙叧闂煇浜涢夐」锛
toc = true # 鏄惁寮鍚洰褰
fancybox = true # 鏄惁鍚敤fancybox锛堝浘鐗囧彲鐐瑰嚮锛
bootcdn = true # 鏄惁浣跨敤bootcdn(閽堝澶ч檰鎺ㄨ崘浣跨敤)
mathjax = false # 鏄惁浣跨敤mathjax锛堟暟瀛﹀叕寮忥級
linkToMarkDown = false # 鏄惁鍦ㄩ摼鎺ュ埌markdown鍘熷鏂囦欢锛堝鏋滀綘鎰挎剰鍏变韩浣犵殑markdown鏂囦欢锛
# 鏂囩珷鎵撹祻
[params.reward]
enable = true
wechat = "/path/to/your/image.png"
alipay = ""
# 绗笁鏂规湇鍔
# Changyan
changyanAppid = ""
changyanAppkey = ""
# baidu push
baidu_push = false
# Baidu Analytics
baidu_analytics = ""
# Baidu Verification
baidu_verification = ""
# Google Verification
google_verification = ""
# 绀句氦閾炬帴
[params.social]
a-email = "your@email.com"
b-stack-overflow = ""
c-twitter = ""
d-facebook = ""
e-linkedin = ""
f-google = ""
g-github = ""
h-weibo = ""
i-zhihu = ""
j-douban = ""
k-pocket = ""
l-tumblr = ""
```

### 杈撳嚭 markdown 鏂囦欢(鍙)

鍦 config.toml 涓坊鍔犱互涓嬩唬鐮佸嵆鍙紝姝ゆ椂灏`linkToMarkDown`璁剧疆涓`true`鍗冲彲鐢熸晥

```toml
[mediaTypes]
[mediaTypes."text/plain"]
suffix = "md"
[outputFormats.MarkDown]
mediaType = "text/plain"
isPlainText = true
isHTML = false
[outputs]
home = ["HTML", "RSS"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML"]
```

### 鏇村閰嶇疆
- **favicon.ico:** 灏嗕綘鐨 favicon.ico 鏀剧疆鍦`/static`鐩綍涓嬪嵆鍙
- **涓婚棰滆壊:** 涓婚鑷甫 Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet 浜旂棰滆壊

浣犲彲浠ラ氳繃鏇存敼`/src/css/_variable.scss``$theme-color-config`鐨勫兼潵鏇存敼涓婚棰滆壊

浣犱篃鍙互鑷畾涔変富棰橀鑹诧紝鍙傝[婧愪富棰樻枃妗](https://github.com/ahonn/hexo-theme-even/wiki/%E4%BF%AE%E6%94%B9%E4%B8%BB%E9%A2%98%E9%A2%9C%E8%89%B2)

- **front matter:** `/even/archetypes/default.md`涓鏄庝簡涓浜涗綘鍙互鍦ㄦ枃绔犵殑 front matter 涓娇鐢ㄧ殑鍙傛暟锛屼綘鍙互鏈夐夋嫨鎬у皢鍏舵坊鍔犺嚦浣犵殑`/archetypes/default.md`妯℃澘涓

```yaml
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
lastmod: {{ .Date }}
draft: true
isCJKLanguage: true
keywords: []
description: ""
tags: []
categories: []
# 濡傛灉杩欎竴绡囧唴瀹圭殑浣滆呮湁浜涗笉鍚
author: ""
# 濡傛灉浣犲湪 config.toml 涓墦寮浜嗘煇浜涘姛鑳斤紝浣犲彲浠ラ拡瀵规煇涓绡囧唴瀹瑰叧闂畠
comment: false
toc: false
# 浣犱篃鍙互涓鸿繖涓绡囧唴瀹瑰畾涔夊彟涓涓鍙崗璁紝浣跨敤 copyright: "杩欐槸鍙︿竴涓崗璁紒"
copyright: false
reward: false
mathjax: false
```

- **璁剧疆绔欑偣璇█:** `/data/even/default.toml`榛樿浣跨敤浜嗕腑鏂囪瑷锛屼綘鍙互鎸夐渶鏇存敼銆傛敞鎰忥細涓婚鍙細浣跨敤`default.toml`鏂囦欢锛屼慨鏀瑰叾浠栨枃浠跺苟涓嶄細鐢熸晥銆


### Build

濡傛灉浣犱慨鏀逛簡 /src/ 鐩綍涓嬬殑浠绘剰鏂囦欢锛屼綘闇瑕侀噸鏂扮紪璇戜娇鍏剁敓鏁
```bash
cd ./themes/even/src/
# 瀹夎渚濊禆鐜
npm install
# 缂栬瘧
npm start
```

### 涓浠藉畬鏁寸殑 config.toml 閰嶇疆鏂囦欢
```toml
baseURL = "http://localhost:1313"
languageCode = "zh-CN"
defaultContentLanguage = "zh-CN"
title = "olOwOlo"
enableRobotsTXT = true
enableEmoji = true
theme = "even"
# 棣栭〉鏄剧ず鐨勬枃绔犳潯鐩暟閲忥紝榛樿涓10锛堝彲閫夛級
paginate = 5
# Disqus Username锛堝彲閫夛級
disqusShortname = "disqus_shortname"
# Google Analytics UA number锛堝彲閫夛級
googleAnalytics = "UA-XXXXXXXX-X"
# Copyright of your post锛堝彲閫夛級
copyright = "<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/cn/\" target=\"_blank\" title=\"涓浗澶ч檰 (CC BY-NC-SA 3.0 CN)\">缃插悕-闈炲晢鐢-鐩稿悓鏂瑰紡鍏变韩 3.0</a>"
[author]
name = "olOwOlo"
[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
# 鐩綍
[[menu.main]]
name = "Home"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
name = "Archives"
weight = 20
identifier = "archives"
url = "/post/"
[[menu.main]]
name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
[[menu.main]]
name = "Categories"
weight = 40
identifier = "categories"
url = "/categories/"
[[menu.main]]
name = "About"
weight = 50
identifier = "about"
url = "/about/"
[params]
# 璇峰嬁鏇存敼
version = "2.5.0"
# 绔欑偣寤虹珛鏃堕棿
since = "2017"
# 绔欑偣淇℃伅锛堝彲閫夛級
keywords = ["olOwOlo", "blog", "鍗氬"]
description = "olOwOlo blog."
# 褰掓。銆佹爣绛俱佸垎绫绘瘡椤垫樉绀虹殑鏂囩珷鏁扮洰
archive-paginate = 50
# 涓浜涘叏灞寮鍏筹紙浣犲彲浠ュ湪姣忎竴绡囧唴瀹圭殑 front matter 涓崟鐙叧闂煇浜涢夐」锛
toc = true # 鏄惁寮鍚洰褰
fancybox = true # 鏄惁鍚敤fancybox锛堝浘鐗囧彲鐐瑰嚮锛
bootcdn = true # 鏄惁浣跨敤bootcdn(閽堝澶ч檰鎺ㄨ崘浣跨敤)
mathjax = false # 鏄惁浣跨敤mathjax锛堟暟瀛﹀叕寮忥級
linkToMarkDown = false # 鏄惁鍦ㄩ摼鎺ュ埌markdown鍘熷鏂囦欢锛堝鏋滀綘鎰挎剰鍏变韩浣犵殑markdown鏂囦欢锛
# 鏂囩珷鎵撹祻
[params.reward]
enable = true
wechat = "/path/to/your/image.png"
alipay = ""
# 绗笁鏂规湇鍔
# Changyan
changyanAppid = ""
changyanAppkey = ""
# baidu push
baidu_push = false
# Baidu Analytics
baidu_analytics = ""
# Baidu Verification
baidu_verification = ""
# Google Verification
google_verification = ""
# 绀句氦閾炬帴
[params.social]
a-email = "your@email.com"
b-stack-overflow = ""
c-twitter = ""
d-facebook = ""
e-linkedin = ""
f-google = ""
g-github = ""
h-weibo = ""
i-zhihu = ""
j-douban = ""
k-pocket = ""
l-tumblr = ""
```
## License

Released under the MIT License.

## 琛ㄧず鎰熻阿

> 绉绘涓婚鏃跺弬鑰冧簡涓嶅皯...
1. 涓涓ソ鐪嬬殑鍥借涓婚锛 [hugo-nuo](https://github.com/laozhu/hugo-nuo)
2. 涓涓ソ鐪嬬殑鍑虹幇鍦 Quick Start 閲岀殑涓婚锛 [ananke](https://github.com/budparr/gohugo-theme-ananke)
3. 涓涓ソ鐪嬬殑婧愪富棰橈細 [hexo-theme-even](https://github.com/ahonn/hexo-theme-even)
@@ -0,0 +1,21 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
lastmod: {{ .Date }}
draft: true
isCJKLanguage: true
keywords: []
description: ""
tags: []
categories: []
author: ""

# you can close something for this content if you open it in config.toml.
comment: false
toc: false
copyright: false # you can define another copyright. e.g. copyright: "This is an another copyright."
reward: false
mathjax: false
---

<!--more-->

0 comments on commit 3c6cb7f

Please sign in to comment.