Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
4367d51759 | ||
|
ffb7bcb2d9 | ||
|
feb9fe196e | ||
|
f1c03a8f21 | ||
|
0bc4b48060 | ||
|
1dbbc6110f | ||
|
c90f268255 |
26
README.md
26
README.md
@@ -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 can’t find something.
|
||||
let me know if you can’t 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
|
||||
# type:0-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
|
||||
|
||||
# Comment:1、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
|
||||
|
@@ -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>
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user