Skip to content

Commit 3f621aa

Browse files
committed
add icon
1 parent 5527b87 commit 3f621aa

20 files changed

+61
-47
lines changed

README.md

Lines changed: 47 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,42 @@ avatar:
8585
url: /static/images/kamuyi.jpg
8686
```
8787
88+
- theme filter blur | 主题模糊滤镜设置
89+
90+
you can set the gaussian radius here.
91+
92+
你可以在这里设置高斯模糊半径,效果如下.
93+
94+
![gr](./docs/gr.png)
95+
96+
```yml
97+
blur:
98+
background_color: '#ffffff'
99+
100+
# 'true' corresponding to css style 'overflow: hidden'
101+
# 设置为'true'则对应模糊容器'overflow'选项
102+
hide_overflow: true
103+
104+
# Alpha Value of the background color
105+
# 背景颜色透明值, 启用会导致高斯模糊失效
106+
opacity:
107+
enable: false # switch to 'true' will make the gaussian blur lose efficacy
108+
opacity_value: 0.4
109+
110+
gaussian_radius: # 高斯模糊程度,数值越大越模糊
111+
top_navigator: 50 # 40+ preferred
112+
header: 30 # 5 ~ 50 preferred
113+
footer: 40 # 5 ~ 100 preferred
114+
115+
font:
116+
color: '#ffffff'
117+
```
118+
119+
120+
Notice that the `font.color` will only affect the font color in the blur area.
121+
122+
注意,这里的`font.color`只会影响模糊区域的字体颜色.
123+
88124
- background picture | 背景图片
89125

90126
```yml
@@ -138,41 +174,7 @@ menu:
138174
# 这里是一个导航到'关于我'的页面,前提是你需要在你的'source'文件夹有'/about/index.md'文件
139175
About: /pages/about/index
140176
```
141-
- theme filter blur | 主题模糊滤镜设置
142-
143-
you can set the gaussian radius here.
144-
145-
你可以在这里设置高斯模糊半径,效果如下.
146-
147-
![gr](./docs/gr.png)
148-
149-
```yml
150-
blur:
151-
background_color: '#ffffff'
152-
153-
# 'true' corresponding to css style 'overflow: hidden'
154-
# 设置为'true'则对应模糊容器'overflow'选项
155-
hide_overflow: true
156-
157-
# Alpha Value of the background color
158-
# 背景颜色透明值, 启用会导致高斯模糊失效
159-
opacity:
160-
enable: false # switch to 'true' will make the gaussian blur lose efficacy
161-
opacity_value: 0.4
162-
163-
gaussian_radius: # 高斯模糊程度,数值越大越模糊
164-
top_navigator: 30 # 30+ preferred
165-
header: 30 # 5 ~ 50 preferred
166-
footer: 40 # 5 ~ 100 preferred
167-
168-
font:
169-
color: '#ffffff'
170-
```
171-
172177

173-
Notice that the `font.color` will only affect the font color in the blur area.
174-
175-
注意,这里的`font.color`只会影响模糊区域的字体颜色.
176178

177179
- social links | 社交链接
178180

@@ -195,6 +197,17 @@ social_icons:
195197
qq: fa-qq
196198
```
197199

200+
- favicon | 网站图标
201+
202+
![icon](./docs/ico.png)
203+
204+
you can use your own `.ico` file (`32px * 32px` preferred) to replace the original `favicon.ico` under the directory `/themes/lite/source/static/`.
205+
206+
你可以用你自己的图标文件,最好是`32px * 32px`大小,来替换目录`/themes/lite/source/static/`下的`favicon.ico`文件。
207+
208+
![directory](./docs/replace.png)
209+
210+
198211
- page 404 | 404 页面
199212

200213
```yml

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ blur:
6464
opacity_value: 0.4
6565

6666
gaussian_radius:
67-
top_navigator: 30 # 30px+ preferred
67+
top_navigator: 50 # 40px+ preferred
6868
header: 30 # 5 ~ 50px preferred
6969
footer: 40 # 5 ~ 100px preferred
7070

build/webpack.prod.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ const webpackConfig = merge(baseWebpackConfig, {
5353
// duplicated CSS from different components can be deduped.
5454
new OptimizeCSSPlugin({
5555
cssProcessorOptions: config.build.productionSourceMap
56-
? {safe: true, map: {inline: false}}
57-
: {safe: true}
56+
? { safe: true, map: { inline: false } }
57+
: { safe: true }
5858
}),
5959
// generate dist index.html with correct asset hash for caching.
6060
// you can customize output by editing /index.html

docs/ico.png

2.24 KB
Loading

docs/replace.png

24.7 KB
Loading

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta name="viewport"
66
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
77
<meta http-equiv="X-UA-Compatible" content="ie=edge">
8+
<link rel="shortcut icon" href="/static/favicon.ico"/>
89
<title><%= config && config.title || 'Loading...' %></title>
910
</head>
1011
<body>

layout/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang=en><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv=X-UA-Compatible content="ie=edge"><title><%= config && config.title || 'Loading...' %></title><link href=/static/css/app.cf083110b4ad01dfbbd78e4abe4bd605.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.1573a84f24811dbdb49b.js></script><script type=text/javascript src=/static/js/vendor.e12dc8c9af1f7aa12436.js></script><script type=text/javascript src=/static/js/app.917a6d0a40e86a3efd3e.js></script></body></html>
1+
<!doctype html><html lang=en><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta http-equiv=X-UA-Compatible content="ie=edge"><link rel="shortcut icon" href=/static/favicon.ico><title><%= config && config.title || 'Loading...' %></title><link href=/static/css/app.6316a3b5db58ca3ebcf568d0ae50ed80.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.b37737c32533e4656fe8.js></script><script type=text/javascript src=/static/js/vendor.e12dc8c9af1f7aa12436.js></script><script type=text/javascript src=/static/js/app.f9a52188928aeb18d075.js></script></body></html>

source/static/css/app.cf083110b4ad01dfbbd78e4abe4bd605.css renamed to source/static/css/app.6316a3b5db58ca3ebcf568d0ae50ed80.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
44.1 KB
Binary file not shown.

source/static/css/app.cf083110b4ad01dfbbd78e4abe4bd605.css.map renamed to source/static/css/app.6316a3b5db58ca3ebcf568d0ae50ed80.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)