7 Commits
v1.1 ... v1.2

Author SHA1 Message Date
shenyu
4367d51759 release: v1.2 2019-12-30 22:01:38 +08:00
shenyu
ffb7bcb2d9 fix: style 2019-12-30 22:00:24 +08:00
shenyu
feb9fe196e fix: markdown style 2019-12-30 21:47:25 +08:00
shenyu
f1c03a8f21 fix: markdown list style 2019-12-30 21:23:12 +08:00
shenyu
0bc4b48060 fix: README.md 2019-12-30 20:22:40 +08:00
shenyu
1dbbc6110f fix: footer 2019-12-29 16:44:12 +08:00
shenyu
c90f268255 release: v1.1 2019-12-29 11:02:30 +08:00
3 changed files with 27 additions and 20 deletions

View File

@@ -14,7 +14,7 @@
</a> </a>
<br> <br>
<a href="https://github.com/Shen-Yu/hexo-theme-ayer/releases" target="_blank" rel="noopener noreferrer"> <a href="https://github.com/Shen-Yu/hexo-theme-ayer/releases" target="_blank" rel="noopener noreferrer">
<img alt="GitHub release" src="https://img.shields.io/badge/release-v1.0-blue.svg"> <img alt="GitHub release" src="https://img.shields.io/badge/release-v1.2-blue.svg">
</a> </a>
<img alt="language" src="https://img.shields.io/badge/language-ejs--stylus-orange.svg"> <img alt="language" src="https://img.shields.io/badge/language-ejs--stylus-orange.svg">
<a href="https://hexo.io/zh-cn/" target="_blank" rel="noopener noreferrer"> <a href="https://hexo.io/zh-cn/" target="_blank" rel="noopener noreferrer">
@@ -58,7 +58,7 @@ git pull
### Configuration ### Configuration
let me know if you cant find something. let me know if you cant find anything.
``` yml ``` yml
# Menu-Sidebar # Menu-Sidebar
@@ -74,10 +74,10 @@ favicon: /favicon.ico
logo: /images/ayer-side.svg logo: /images/ayer-side.svg
# Cover Setting # Cover Setting
# enable: [true|false]path: [background-image path]logo: [cover-logo path] # enable: [true|false]path: [background-image]logo: [cover-logo-image]
cover: cover:
enable: true enable: true
path: /images/cover1.jpg # images目录下附送多张美图可更换 path: /images/cover1.jpg # there are some beautiful cover images in Ayer's directory: /source/images, choose your favorite image to replace it.
logo: /images/ayer.svg logo: /images/ayer.svg
# ProgressBar # ProgressBar
@@ -104,7 +104,7 @@ toc: true
# type0-close reward 1-only open in article which you have configured reward:true 2-open in all articles # type0-close reward 1-only open in article which you have configured reward:true 2-open in all articles
reward_type: 2 reward_type: 2
# reward word # reward word
reward_wording: '请我喝杯咖啡吧~' reward_wording: 'Buy me a cup of coffee~'
# qrcode image path # qrcode image path
alipay: /images/alipay.jpg alipay: /images/alipay.jpg
# qrcode image path # qrcode image path
@@ -113,10 +113,10 @@ weixin: /images/wechat.jpg
# Search # Search
search: true search: true
# RSS(npm i hexo-generator-feed) # RSS
rss: /atom.xml rss: /atom.xml
# Comment1、Valine(recommended)2、Gitalk # Comment1、Valine (recommended)2、Gitalk
# 1、Valine [A fast, simple & powerful comment system](https://github.com/xCss/Valine) # 1、Valine [A fast, simple & powerful comment system](https://github.com/xCss/Valine)
# You need create leancloud account first (https://console.leancloud.app), then put the id|key in below. # You need create leancloud account first (https://console.leancloud.app), then put the id|key in below.
@@ -128,7 +128,7 @@ leancloud:
valine: valine:
enable: true enable: true
avatar: mp # (https://valine.js.org/avatar.html) avatar: mp # (https://valine.js.org/avatar.html)
placeholder: 给我的文章加点评论吧~ # placeholder placeholder: Add some comments to my article~ # placeholder
# 2、Gitalk(https://github.com/gitalk/gitalk) # 2、Gitalk(https://github.com/gitalk/gitalk)
gitalk: gitalk:
@@ -167,18 +167,18 @@ mathjax: true
# since year # since year
since: 2019 since: 2019
# pageFooter (Set true and let more people know this theme, Thanks!) # pageFooter (Set true can let more people know this theme, Thanks!)
pageFooter: true pageFooter: true
``` ```
### Plugins ### Plugins
+ [hexo-generator-search](https://github.com/wzpan/hexo-generator-search) Local search + [hexo-generator-search](https://github.com/wzpan/hexo-generator-search) (for Local Search)
```yml ```yml
$ npm install hexo-generator-searchdb --save $ npm install hexo-generator-searchdb --save
``` ```
Then add the plugin configuration for hexo's configuration file `_config.yml` (note: not the theme's configuration file): Then add the plugin configuration in hexo's configuration file `_config.yml` (note: not the theme's configuration file):
```yml ```yml
# Hexo-generator-search # Hexo-generator-search
@@ -188,13 +188,13 @@ pageFooter: true
format: html format: html
``` ```
+ [hexo-generate-feed](https://github.com/hexojs/hexo-generator-feed) RSS + [hexo-generate-feed](https://github.com/hexojs/hexo-generator-feed) (for RSS)
```yml ```yml
$ npm install hexo-generator-feed --save $ npm install hexo-generator-feed --save
``` ```
Then add the plugin configuration for hexo's configuration file `_config.yml` (note: not the theme's configuration file): Then add the plugin configuration in hexo's configuration file `_config.yml` (note: not the theme's configuration file):
```yml ```yml
feed: feed:
@@ -208,7 +208,7 @@ pageFooter: true
order_by: -date order_by: -date
``` ```
+ [hexo-generator-index-pin-top](https://github.com/netcan/hexo-generator-index-pin-top) + [hexo-generator-index-pin-top](https://github.com/netcan/hexo-generator-index-pin-top) (for Sticky Post)
``` bash ``` bash
$ npm uninstall hexo-generator-index --save $ npm uninstall hexo-generator-index --save

View File

@@ -8,9 +8,10 @@
</li> </li>
<li> <li>
<% if (theme.pageFooter){ %> <% if (theme.pageFooter){ %>
Power by
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %> <% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
<% var themeLink = '<a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>'; %> <% var themeLink = '<a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>'; %>
<%- hexoLink %> Theme <%- themeLink %> by shenyu <%- hexoLink %> Theme <%- themeLink %>
<% } %> <% } %>
</li> </li>
</ul> </ul>

View File

@@ -1,7 +1,9 @@
highlight-background = #f6f8fa highlight-background = #2d2d2d
highlight-code = #f2f2f2
highlight-code-color = #c7254e
highlight-current-line = #efefef highlight-current-line = #efefef
highlight-selection = #d6d6d6 highlight-selection = #000
highlight-foreground = #4d4d4c highlight-foreground = #dedede
highlight-comment = #8e908c highlight-comment = #8e908c
highlight-red = #f2777a highlight-red = #f2777a
highlight-orange = #f99157 highlight-orange = #f99157
@@ -23,12 +25,15 @@ $line-numbers
color highlight-comment color highlight-comment
.article-entry .article-entry
ol>li>ul
padding-inline-start: 2rem;
pre, code pre, code
font-family inherit font-family inherit
text-shadow none text-shadow none
code code
background highlight-background color highlight-code-color
padding .25rem background highlight-code
padding .25rem .6rem
border-radius(.4rem) border-radius(.4rem)
pre pre
@extend $code-block @extend $code-block
@@ -146,3 +151,4 @@ pre
.keyword .keyword
.javascript .function .javascript .function
color highlight-purple color highlight-purple