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>
<br>
<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>
<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">
@@ -58,7 +58,7 @@ git pull
### Configuration
let me know if you cant find something.
let me know if you cant find anything.
``` yml
# Menu-Sidebar
@@ -74,10 +74,10 @@ favicon: /favicon.ico
logo: /images/ayer-side.svg
# Cover Setting
# enable: [true|false]path: [background-image path]logo: [cover-logo path]
# enable: [true|false]path: [background-image]logo: [cover-logo-image]
cover:
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
# 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
reward_type: 2
# reward word
reward_wording: '请我喝杯咖啡吧~'
reward_wording: 'Buy me a cup of coffee~'
# qrcode image path
alipay: /images/alipay.jpg
# qrcode image path
@@ -113,7 +113,7 @@ weixin: /images/wechat.jpg
# Search
search: true
# RSS(npm i hexo-generator-feed)
# RSS
rss: /atom.xml
# Comment1、Valine (recommended)2、Gitalk
@@ -128,7 +128,7 @@ leancloud:
valine:
enable: true
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)
gitalk:
@@ -167,18 +167,18 @@ mathjax: true
# since year
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
```
### 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
$ 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
# Hexo-generator-search
@@ -188,13 +188,13 @@ pageFooter: true
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
$ 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
feed:
@@ -208,7 +208,7 @@ pageFooter: true
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
$ npm uninstall hexo-generator-index --save

View File

@@ -8,9 +8,10 @@
</li>
<li>
<% if (theme.pageFooter){ %>
Power by
<% 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>'; %>
<%- hexoLink %> Theme <%- themeLink %> by shenyu
<%- hexoLink %> Theme <%- themeLink %>
<% } %>
</li>
</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-selection = #d6d6d6
highlight-foreground = #4d4d4c
highlight-selection = #000
highlight-foreground = #dedede
highlight-comment = #8e908c
highlight-red = #f2777a
highlight-orange = #f99157
@@ -23,12 +25,15 @@ $line-numbers
color highlight-comment
.article-entry
ol>li>ul
padding-inline-start: 2rem;
pre, code
font-family inherit
text-shadow none
code
background highlight-background
padding .25rem
color highlight-code-color
background highlight-code
padding .25rem .6rem
border-radius(.4rem)
pre
@extend $code-block
@@ -146,3 +151,4 @@ pre
.keyword
.javascript .function
color highlight-purple