Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 8856345

Browse files
committed
[Refactor]项目重构
1 parent 6a06127 commit 8856345

File tree

6 files changed

+53
-58
lines changed

6 files changed

+53
-58
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
*.iml

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,53 @@
99

1010
[pgjett-博客园](https://pgjett.cnblogs.com)
1111

12-
## 更新记录
12+
## 主题介绍
1313

14+
1. 风格简约、响应轻快
15+
2. 摒弃 jQuery,使用原生 JS
16+
3. 兼容 IE 9 及以上浏览器
17+
4. 支持 PC、手机双端响应式设计
18+
19+
## 快速使用
20+
21+
1. 在博客园后台设置界面申请 js 权限
22+
23+
2. 将博客园主题设置为 BlueSky
24+
25+
3. 按照文件名将代码复制到设置界面的对应文本框中
26+
27+
4. 勾选 css 代码框下的禁用模板默认CSS
28+
29+
5. 在页脚 HTMl 代码中,设置 profile 以调整个人参数,设置 news 以调整首页滚动公告
30+
31+
followId 可以在任意一篇博文页面,进入 f12 开发者工具栏搜索”follow“,结果如“follow('54ceedb5-de8f-4136-e346-08d7804a3aa0')”,括号内字符串即为 followId
32+
33+
```
34+
<!--parameter-->
35+
<script type="text/javascript">
36+
var profile = {
37+
"icon": "https://blog-static.cnblogs.com/files/pgjett/favicon.ico",
38+
"logo": "https://blog-static.cnblogs.com/files/pgjett/logo.ico",
39+
"github": "https://github.com/pgjett",
40+
"links": "https://www.cnblogs.com/pgjett/p/12294879.html",
41+
"about": "https://www.cnblogs.com/pgjett/p/12294875.html",
42+
"mail": "http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=eAgfEh0MDDgJCVYbFxU",
43+
"followId": '54ceedb5-de8f-4136-e346-08d7804a3aa0'
44+
};
45+
var news = [
46+
{
47+
"title": "武汉加油,中国加油!",
48+
"url": "javascript:;"
49+
},
50+
{
51+
"title": "努力永远不会太迟。",
52+
"url": "javascript:;"
53+
}
54+
];
55+
</script>
56+
```
57+
58+
## 注意事项
59+
60+
在编辑随笔时插入摘要图片,请使用占用较小的图片,并且将插入的标签 src 改成 data-src,可以实现图片懒加载 ,更快进入首页,提升浏览体验
1461

v1.0/页脚 HTML 代码.html renamed to pageFoot.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@
447447
}
448448

449449
function getPageSize() {
450-
if (window.innerWidth || document.documentElement.clientWidth > 767) {
450+
var pageWidth = window.innerWidth || document.documentElement.clientWidth;
451+
if (pageWidth > 767) {
451452
return "max";
452453
} else return "min";
453454
}
File renamed without changes.

v1.0/页面定制 CSS 代码.css renamed to shmily.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ code:hover .copyBtn {
12621262
#sideBar, #catalog-box {
12631263
top: 130px;
12641264
bottom: 100px;
1265-
width: 200px;
1265+
width: 200px !important;
12661266
}
12671267

12681268
#catalog-box {

v1.0/ABOUT.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)