Skip to content

Commit

Permalink
bump to version 20220703
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyuanneko committed Jul 2, 2022
1 parent 55b4f2f commit fb69977
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 5 deletions.
2 changes: 1 addition & 1 deletion App/App.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"currentProgramVersion": 20220702,
"currentProgramVersion": 20220703,
"AppName": "Baiyang-lzy's Blog Generator"
}
21 changes: 18 additions & 3 deletions App/blog_source/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,7 @@
}
}
</style>
<style id="whether_nightmode">

</style>

<style>
blockquote {
color: #666666;
Expand Down Expand Up @@ -523,6 +521,9 @@
right: 20px;
bottom: 60px;
}
</style>
<style id="whether_nightmode">

</style>
<style id="custom_css"></style>
<div id="loading" style="font-family: sans-serif">
Expand Down Expand Up @@ -579,6 +580,20 @@
background-color:black;
color:white
}
pre,
code,
kbd,
samp {
border-radius: 4px;
background-color: black;
padding-top: 4px;
padding-bottom: 4px;
padding-left: 12px;
padding-right: 12px;
color: #0550ae;
display: inline-block;
}
`;
localStorage.setItem("is_nightmode", "on");
}
Expand Down
4 changes: 4 additions & 0 deletions App/delete_article.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ module.exports = function (i) {

blog["文章列表"].splice(i, 1);
BlogInstance.writeBlogData();

rss_hook();
sitemap_hook();

window.location.reload();
} else {

Expand Down
3 changes: 3 additions & 0 deletions App/delete_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ module.exports = function (i) {

blog["页面列表"].splice(i, 1);
BlogInstance.writeBlogData();

sitemap_hook();

window.location.reload();
} else {

Expand Down
10 changes: 10 additions & 0 deletions App/save_blog_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,15 @@ module.exports = function () {
window.alert("尽管设置已经保存,但是你所填写的域名末尾包含了斜杠。为了避免生成的 RSS 或站点地图地址添加重复的斜杠,请删除域名字段末尾的斜杠,然后再次保存。")
}

if(domain_string === "" && auto_rss_enabled === true){
window.alert("在没有填写域名的情况下不能使用rss功能");
auto_rss_enabled = false;
}

if(domain_string === "" && auto_sitemap_enabled === true){
window.alert("在没有填写域名的情况下不能使用站点地图生成功能");
auto_sitemap_enabled = false;
}

BlogInstance.writeBlogData();
};
5 changes: 5 additions & 0 deletions docs/zh-cn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新日志

## 20220703
* 修复了删除文章和删除页面时不会触发rss和sitemap更新的问题
* 修复了博客深色模式下代码标签看不清的问题
* 在没有填写域名字段时不再允许勾选自动生成rss和sitemap的选项

## 20220702
* 支持sitemap和rss的自动生成。在设置中勾选对应选项后,会在页面和文章元信息有更改时触发rss和sitemap生成
* 实验性的bbg theme v2(主要由 @chihuo2104 完成)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbg",
"version": "20220702.0.0",
"version": "20220703.0.0",
"description": "A static blog generator based on Electron Technology.",
"license": "UNLICENSED",
"author": {
Expand Down

0 comments on commit fb69977

Please sign in to comment.