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

Commit

Permalink
[Refactor]项目重构
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed Aug 3, 2020
1 parent 6a06127 commit 8856345
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 58 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
*.iml
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,53 @@

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

## 更新记录
## 主题介绍

1. 风格简约、响应轻快
2. 摒弃 jQuery,使用原生 JS
3. 兼容 IE 9 及以上浏览器
4. 支持 PC、手机双端响应式设计

## 快速使用

1. 在博客园后台设置界面申请 js 权限

2. 将博客园主题设置为 BlueSky

3. 按照文件名将代码复制到设置界面的对应文本框中

4. 勾选 css 代码框下的禁用模板默认CSS

5. 在页脚 HTMl 代码中,设置 profile 以调整个人参数,设置 news 以调整首页滚动公告

followId 可以在任意一篇博文页面,进入 f12 开发者工具栏搜索”follow“,结果如“follow('54ceedb5-de8f-4136-e346-08d7804a3aa0')”,括号内字符串即为 followId

```
<!--parameter-->
<script type="text/javascript">
var profile = {
"icon": "https://blog-static.cnblogs.com/files/pgjett/favicon.ico",
"logo": "https://blog-static.cnblogs.com/files/pgjett/logo.ico",
"github": "https://github.com/pgjett",
"links": "https://www.cnblogs.com/pgjett/p/12294879.html",
"about": "https://www.cnblogs.com/pgjett/p/12294875.html",
"mail": "http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=eAgfEh0MDDgJCVYbFxU",
"followId": '54ceedb5-de8f-4136-e346-08d7804a3aa0'
};
var news = [
{
"title": "武汉加油,中国加油!",
"url": "javascript:;"
},
{
"title": "努力永远不会太迟。",
"url": "javascript:;"
}
];
</script>
```

## 注意事项

在编辑随笔时插入摘要图片,请使用占用较小的图片,并且将插入的标签 src 改成 data-src,可以实现图片懒加载 ,更快进入首页,提升浏览体验

3 changes: 2 additions & 1 deletion v1.0/页脚 HTML 代码.html → pageFoot.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@
}

function getPageSize() {
if (window.innerWidth || document.documentElement.clientWidth > 767) {
var pageWidth = window.innerWidth || document.documentElement.clientWidth;
if (pageWidth > 767) {
return "max";
} else return "min";
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion v1.0/页面定制 CSS 代码.css → shmily.css
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ code:hover .copyBtn {
#sideBar, #catalog-box {
top: 130px;
bottom: 100px;
width: 200px;
width: 200px !important;
}

#catalog-box {
Expand Down
55 changes: 0 additions & 55 deletions v1.0/ABOUT.md

This file was deleted.

0 comments on commit 8856345

Please sign in to comment.