Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bmqy/hexo.bmqy.net

北门清燕的博客 - hexo版
https://github.com/bmqy/hexo.bmqy.net

Last synced: 2 months ago
JSON representation

北门清燕的博客 - hexo版

Awesome Lists containing this project

README

        

# 北门清燕的博客 - hexo版


bmqy.net

[![hexo.bmqy.net](https://img.shields.io/github/package-json/v/bmqy/hexo.bmqy.net?logo=data:image/x-icon;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAABMLAAATCwAAAAAAAAAAAACveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///////+veViveViveViveViveViveViveViveViveViveViveViveVj///////+veViveVj///////////////////////////////////////////////+veViveViveViveViveViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveVj///+veViveViveViveViveVj///+veViveViveViveViveViveViveViveViveVj///+veViveViveViveViveVj///+veViveViveViveViveViveViveViveViveViveVj///+veViveViveVj///+veViveViveViveViveViveViveViveViveViveViveViveVj///////////+veViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveViveVgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&color=brightgreen "hexo.bmqy.net")](https://github.com/bmqy/hexo.bmqy.net "hexo.bmqy.net")
[![theme-next version](https://img.shields.io/badge/Next-%3E=8.12.3-important?logo=hexo&style=flat-square)](https://www.npmjs.com/package/hexo-theme-next "theme-next")
[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=5.3.0-important?style=flat-square&logo=hexo)](https://hexo.io "hexo")
[![GitHub stars](https://img.shields.io/github/stars/bmqy/hexo.bmqy.net?style=social)](https://github.com/bmqy/hexo.bmqy.net/stargazers "github stars")
[![GitHub forks](https://img.shields.io/github/forks/bmqy/hexo.bmqy.net?style=social)](https://github.com/bmqy/hexo.bmqy.net/fork "github stars")

## 博客目录(2024-05-29 12:30:43更新)

[【原创】油猴脚本:哪吒VPS橱窗后台脚本](https://www.bmqy.net/2666.html)

[哪吒面板终极进化之VPS橱窗](https://www.bmqy.net/2665.html)

[哪吒面板default主题小鸡底部增加购买同款按钮](https://www.bmqy.net/2664.html)

[Typecho二开魔改简单指北](https://www.bmqy.net/2663.html)

[【原创】油猴脚本:论坛快捷回帖](https://www.bmqy.net/2662.html)

[简单米表:Typecho-Simple-Mibiao](https://www.bmqy.net/2661.html)

[Windows 11 23H2更新遇到下载错误解决方法](https://www.bmqy.net/2660.html)

[Microsoft 365 E5开发者订阅管理员双重认证丢失解决方法](https://www.bmqy.net/2659.html)

[Virtualbox安装Ubuntu不完全指北](https://www.bmqy.net/2658.html)

[一剑开天门](https://www.bmqy.net/2657.html)

[将chrome谷歌浏览器轻松打造成rss阅读器](https://www.bmqy.net/2656.html)

[地震云](https://www.bmqy.net/2655.html)

[罗刹海市](https://www.bmqy.net/2654.html)

[关于笑果我觉得还是罗翔老师说的好](https://www.bmqy.net/2653.html)

[推荐正在玩的游戏:SimpleMMO,附游戏助手SMMOHelper](https://www.bmqy.net/2652.html)

[集成Elog使用notion数据库](https://www.bmqy.net/2651.html)

[【原创】ios捷径:法定工作日打卡提醒](https://www.bmqy.net/2318.html)

[测试AI](https://www.bmqy.net/2650.html)

[再次折腾hexo](https://www.bmqy.net/2649.html)

[docker部署freshrss](https://www.bmqy.net/2648.html)

[apifox自动导入apidoc接口数据](https://www.bmqy.net/2645.html)

[node项目部署到ftp](https://www.bmqy.net/2640.html)

[vite项目使用tinymce插件axupimgs实现多图片上传](https://www.bmqy.net/2642.html)

[tomcat服务器上utf8编码的文件乱码解决方法](https://www.bmqy.net/2639.html)

[快捷指令:图床](https://www.bmqy.net/2637.html)

[七牛上传视频获取视频封面和缩略图](https://www.bmqy.net/2444.html)

[注销网站得慎重](https://www.bmqy.net/2364.html)

[【原创】ios捷径:捷径库](https://www.bmqy.net/2342.html)

[【原创】ios捷径:法定工作日打卡提醒](https://www.bmqy.net/2318.html)

[【原创】ios捷径:自动壁纸](https://www.bmqy.net/2312.html)

[【原创】ios捷径:倒班闹钟](https://www.bmqy.net/2287.html)

[idea找回执行git pull操作后,被覆盖的本地未提交的代码](https://www.bmqy.net/2274.html)

[altserver跳坑指北](https://www.bmqy.net/2254.html)

[吐一吐三丰云免费服务器](https://www.bmqy.net/2246.html)

[Microsoft Store中的应用软件如何备份数据](https://www.bmqy.net/2237.html)

[卖盘](https://www.bmqy.net/2194.html)

[利用frp实现微软远程桌面管理内网电脑之不完全指北](https://www.bmqy.net/2174.html)

[apicloud用tortoisesvn管理代码,实现按不同分支编译打包app](https://www.bmqy.net/2144.html)

[vscode插件提示:command 'extension.updateSettings' not found解决方法](https://www.bmqy.net/2139.html)

[apicloud使用alipayplus支付宝支付模块注意事项](https://www.bmqy.net/2130.html)

[【原创】越狱插件安装注意事项](https://www.bmqy.net/2088.html)

[api.closeFrameGroup的一些注意事项](https://www.bmqy.net/2081.html)

[【原创】ios捷径:我的心愿单](https://www.bmqy.net/1992.html)

[【原创】ios捷径:一键获取urlscheme](https://www.bmqy.net/1933.html)

[【原创】ios捷径:一键签到](https://www.bmqy.net/1874.html)

[【原创】ios捷径:qq群一键签到](https://www.bmqy.net/1844.html)

[【原创】ios捷径:百度搜索风云榜2.1.0](https://www.bmqy.net/1831.html)

[【原创】ios捷径:一键天气预报](https://www.bmqy.net/1816.html)

[【原创】ios捷径:微博热搜榜2.0强势更新](https://www.bmqy.net/1798.html)

[ios捷径:bmqy捷径库](https://www.bmqy.net/1777.html)

[自定义IntelliJ IDEA配置和插件的存放目录,以方便同步idea配置](https://www.bmqy.net/1773.html)

[wordpress平台next主题](https://www.bmqy.net/1754.html)

[vscode本地调试asp](https://www.bmqy.net/1711.html)

[ajaxFileUpload上传成功也执行error方法](https://www.bmqy.net/1707.html)

[更换回wordpress。。。](https://www.bmqy.net/1703.html)

[一键收取熊猫守护者威力值](https://www.bmqy.net/1450.html)

[vscode软件窗口标题栏显示文件完整路径](https://www.bmqy.net/1451.html)

[微信小程序“支付签名验证失败”问题的解决参考](https://www.bmqy.net/1452.html)

[“idea已连接上ftp但看不到文件”的解决办法](https://www.bmqy.net/1453.html)

[js格式化时间显示](https://www.bmqy.net/1454.html)

[js实现中文转换成拼音](https://www.bmqy.net/1455.html)

[h5移动端ios输入法软键盘导致fixed布局bug的解决方案](https://www.bmqy.net/1456.html)

[生命不息,折腾不止之“hexo”](https://www.bmqy.net/1457.html)

[echarts中tooltips自定义数据结构与样式](https://www.bmqy.net/1458.html)

[淘米辅助工具](https://www.bmqy.net/1459.html)

[聚名网辅助工具](https://www.bmqy.net/1460.html)

[仿站制作6](https://www.bmqy.net/1461.html)

[wordpress新添加页面显示评论](https://www.bmqy.net/1462.html)

[华为mate8(b584)root过程简要记录](https://www.bmqy.net/1463.html)

[asp解析json的方法](https://www.bmqy.net/1464.html)

[为子主题增加主题选项功能](https://www.bmqy.net/1465.html)

[自制chrome扩展:百度云分享链接一键登录](https://www.bmqy.net/1466.html)

[清燕的云集小店](https://www.bmqy.net/1467.html)

[Google play下载app状态栏进度显示异常的应对方法](https://www.bmqy.net/1468.html)

[吐槽百度翻译之离线翻译包](https://www.bmqy.net/1469.html)

[现在只有人民才是真正的为人民](https://www.bmqy.net/1470.html)

[吐槽腾讯大王卡](https://www.bmqy.net/1471.html)

[wordpress添加twentysixteen子主题](https://www.bmqy.net/1472.html)

[idea配置less自动编译](https://www.bmqy.net/1473.html)

[使用chrome浏览器调试移动端web页面](https://www.bmqy.net/1474.html)

[idea编译less并使用autoprefixer](https://www.bmqy.net/1475.html)

[sublime自动编译less2css插件,保存时提示系统找不到指定文件](https://www.bmqy.net/1476.html)

[吐一吐中信的升白金](https://www.bmqy.net/1477.html)

[Android手机下输入框获取焦点时, 输入法挡住输入框bug的解决方法](https://www.bmqy.net/1478.html)

[wordpress头像不显示解决方法](https://www.bmqy.net/1480.html)

[用子主题functions.php添加自定义功能后访问网站报错解决方法](https://www.bmqy.net/1479.html)

[ueditor百度编辑器添加自定义模板并设为默认](https://www.bmqy.net/1481.html)

[仿站制作5](https://www.bmqy.net/1482.html)

[读老树画画随感](https://www.bmqy.net/1483.html)

[VMware-workstation 12 安装 Mac OS X 10.10](https://www.bmqy.net/1484.html)

[做梦想](https://www.bmqy.net/1485.html)

[再咏咳](https://www.bmqy.net/1486.html)

[webstorm10配置less编译环境](https://www.bmqy.net/1487.html)

[数钱数到不愿醒,睡觉睡到腿抽筋儿](https://www.bmqy.net/1488.html)

[百度siteApp创建移动站后,提示“开发者模式出错”的解决方法](https://www.bmqy.net/1489.html)

[简单的jquery滑动门代码](https://www.bmqy.net/1490.html)

[瞎子和近视的区别](https://www.bmqy.net/1491.html)

[设为首页、添加收藏的javascript代码](https://www.bmqy.net/1492.html)

[一个坏人好事做的再多,也抵不上一件坏事毁的彻底](https://www.bmqy.net/1493.html)

[ie8使背景图片全屏显示的方法及问题](https://www.bmqy.net/1494.html)

[解决wordpress添加主题时列表中缩略图不显示的问题](https://www.bmqy.net/1495.html)

[wordpress在指定分类下的文章内容后显示自定义推广信息](https://www.bmqy.net/1496.html)

[仿站作品1](https://www.bmqy.net/1500.html)

[仿站制作2](https://www.bmqy.net/1499.html)

[仿站制作3](https://www.bmqy.net/1498.html)

[仿站制作4](https://www.bmqy.net/1497.html)

[dedecms使用ajax调用指定栏目文章列表](https://www.bmqy.net/1501.html)

[生活就是做一点坏事,之后就再多做好事](https://www.bmqy.net/1502.html)

[百度谷歌一键切换(bmqy修复版)](https://www.bmqy.net/1503.html)

[小米2、2S合并分区](https://www.bmqy.net/1504.html)

[wordpress重新安装出现“wordpress database error,can’t find file”错误](https://www.bmqy.net/1505.html)

[dedecms面包屑导航链接样式修改](https://www.bmqy.net/1506.html)

[使用“Standalone Sitemap Generator”工具生成sitemap.xml和sitemap.html网站地图](https://www.bmqy.net/1507.html)

[windows不能在本地计算机启动apache服务的解决方法](https://www.bmqy.net/1508.html)

[图片放入到indesign中后变亮、颜色都变浅的解决办法](https://www.bmqy.net/1509.html)

[为了解决小米手机内部存储空间不足问题,对手机进行重新分区](https://www.bmqy.net/1510.html)

[2015上天班第一天](https://www.bmqy.net/1511.html)

[京城2015年的第一场雪](https://www.bmqy.net/1512.html)

[诺不轻信人不负我,言不轻诺我不负人](https://www.bmqy.net/1513.html)

[wordpress使用twentyfifteen模板做子主题所遇问题的解决及记录](https://www.bmqy.net/1514.html)

[做梦也似大电影](https://www.bmqy.net/1515.html)

[dedecms增加新留言邮件提醒和后台留言管理模块](https://www.bmqy.net/1517.html)

[dedecms重新安装后,文件中链接地址多出“include”路径的解决方法](https://www.bmqy.net/1516.html)

[AspCms在子菜单栏目后面显示产品数量或新闻数量的解决办法](https://www.bmqy.net/1518.html)

[dedecms调用指定单一子栏目文章列表无内容的问题](https://www.bmqy.net/1519.html)

[如今这年头,宅在家里、不凑热闹也是一种自保地方式。](https://www.bmqy.net/1520.html)

[Active Server Pages 错误 ‘ASP 0107’解决办法](https://www.bmqy.net/1521.html)

[js获取鼠标当前所在页面位置](https://www.bmqy.net/1522.html)

[万网空间服务器上传网站后出现HTTP500.19错误](https://www.bmqy.net/1523.html)

[ueditor编辑器创建超链接时添加class样式](https://www.bmqy.net/1524.html)

[dedecms清空所有文章且以后新建文章id从1开始](https://www.bmqy.net/1525.html)

[dedecms更换html编辑器为ueditor](https://www.bmqy.net/1526.html)

[dedecms列表页调用文章内容](https://www.bmqy.net/1527.html)

[心无所倚](https://www.bmqy.net/1528.html)

[“上盈其志,下务其功。悠悠黄河,吾其济乎!”](https://www.bmqy.net/1529.html)

[myeclipse新拷贝到电脑后错误弹窗,无法打开的解决方法](https://www.bmqy.net/1530.html)

[其实我不是强迫症](https://www.bmqy.net/1532.html)

[到哪都有wifi的人](https://www.bmqy.net/1531.html)

[miui开启节省流量功能后数据流量不能使用的问题](https://www.bmqy.net/1533.html)

[治世之能臣,乱世之废柴](https://www.bmqy.net/1534.html)

[来四张凑数](https://www.bmqy.net/1535.html)

[感觉不错的水天一色](https://www.bmqy.net/1536.html)

[修身、立业、齐家、治国、平天下](https://www.bmqy.net/1537.html)

[人闯红灯不可怕,车闯红灯也不可怕](https://www.bmqy.net/1538.html)

[蓝蓝的天上白云飘](https://www.bmqy.net/1539.html)

[差一点儿就拍中了闪电](https://www.bmqy.net/1540.html)

[扬帆起航](https://www.bmqy.net/1541.html)

[这算一景儿三拍么](https://www.bmqy.net/1542.html)

[吐一吐360的开机优化](https://www.bmqy.net/1543.html)

[八月第二波蓝天白云来袭](https://www.bmqy.net/1545.html)

[白云依旧](https://www.bmqy.net/1544.html)

[八月第一张](https://www.bmqy.net/1546.html)

[早晨的雨,起早的景儿](https://www.bmqy.net/1547.html)

[雷鸣雨早](https://www.bmqy.net/1548.html)

[仰望天空](https://www.bmqy.net/1549.html)

[就止一张](https://www.bmqy.net/1550.html)

[早早地一轮红日](https://www.bmqy.net/1551.html)

[为了有所为而有所拍](https://www.bmqy.net/1552.html)

[又一波儿天空来袭](https://www.bmqy.net/1553.html)

[燕美清照之天上的海](https://www.bmqy.net/1555.html)

[警不能以警,察不能以察](https://www.bmqy.net/1554.html)

[面对着巴西被7:1,我只想大笑三声“哇哈哈哈!让你们再赌球!”](https://www.bmqy.net/1556.html)

[php-5.5.14+Apache-2.4.9+xDebug安装配置](https://www.bmqy.net/1558.html)

[再平和自然地表现,也掩盖不了内心地焦急](https://www.bmqy.net/1557.html)

[安卓手机低电量时自动关机](https://www.bmqy.net/1559.html)

[“Brackets-宋体”扩展](https://www.bmqy.net/1560.html)

[新版百度首页设置“新窗口打开搜索页”](https://www.bmqy.net/1561.html)

[blue memories quietly yesterday](https://www.bmqy.net/1562.html)

[什么是偶像,因为他像偶。](https://www.bmqy.net/1563.html)

[北门清燕](https://www.bmqy.net/1565.html)

[流浪哥](https://www.bmqy.net/1564.html)

[第一个浏览器扩展“取消关注主持人”发布成功](https://www.bmqy.net/1566.html)

[2014.6.7拍摄](https://www.bmqy.net/1567.html)

## 关于本项目
### 博客目录
博客目录部分的生成受```https://github.com/zhaoolee/WordPressXMLRPCTools```项目启发,特此感谢。

特此贴一下对项目的魔改```https://github.com/bmqy/WordPressXMLRPCTools```,再次感谢[@zhaoolee](https://github.com/zhaoolee/)。
### 环境变量配置
- COS_BUCKET
- COS_REGION
- COS_SECRET_ID
- COS_SECRET_KEY
- SITE_URL
- TELEGRAM_TO
- TELEGRAM_TOKEN
- ~~FTP_HOST~~
- ~~FTP_PASSWORD~~
- ~~FTP_PORT~~
- ~~FTP_REMOTE~~
- ~~FTP_USERNAME~~

## Hexo配置
### 固定ID
固定ID推荐使用```hexo-abbrlink2```
- Add plugin to Hexo:
```
npm install hexo-abbrlink2 --save
```
- Modify permalink in ```config.yml``` file:
```
permalink: posts/:abbrlink/
```
- optional settings:
```
abbrlink:
start: 1000 # the first id, default 0
```
## Next配置

### 创建标签云
默认无标签页,打开链接会```404```
创建标签页:
```
hexo new page tags
```
```
---
date: 2021-08-04 13:22:27
type: "tags"
---
```

### 创建分类页
默认无分类页,打开链接会```404```
创建分类页:
```
hexo new page categories
```
```
---
date: 2021-08-04 13:22:33
type: "categories"
---
```

### 自定义样式
```hexo```根目录下的```source```新增一个```_data```目录,在该目录下新建```styles.styl```,这个文件将存放我们自定义的样式,然后在```_config.next.yml```文件中```custom_file_path```选项里面将```style```那一行取消注释。
```
custom_file_path:
#head: source/_data/head.njk
#header: source/_data/header.njk
#sidebar: source/_data/sidebar.njk
#postMeta: source/_data/post-meta.njk
#postBodyEnd: source/_data/post-body-end.njk
#footer: source/_data/footer.njk
#bodyEnd: source/_data/body-end.njk
#variable: source/_data/variables.styl
#mixin: source/_data/mixins.styl
style: source/_data/styles.styl
```

### 添加备案号
```
footer:
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn
beian:
enable: true
icp: xxxxxx
```

## 自动化部署
### COS
- Installation
```
npm install hexo-deployer-cos --save
```
- Options
You can configure in _config.yml as follows:
```
deploy:
type: cos
secretId: yourSecretId
secretKey: yourSecretKey
bucket: yourBucket
region: yourRegion
```
> For projects that use pipelines, you may not want to expose COS properties in the project file, so we support getting them through environment variables.
```
COS_SECRET_ID=yourSecretId
COS_SECRET_KEY=yourSecretKey
COS_BUCKET=yourBucket
COS_REGION=yourRegion
```
> Environment variables have lower priority than _config.xml configuration
### FTPSync
- Install hexo-deployer-ftpsync.
```
npm install hexo-deployer-ftpsync --save
```
- Edit settings.
```
deploy:
type: ftpsync
host:
user:
pass:
remote: [remote]
port: [port]
ignore: [ignore]
connections: [connections]
verbose: [true|false]
```
### 文章更新时间设置:
> updated_option
>
> updated_option 控制了当 Front Matter 中没有指定 updated 时,updated 如何取值:
>
> mtime: 使用文件的最后修改时间。这是从 Hexo 3.0.0 开始的默认行为。
>
> date: 使用 date 作为 updated 的值。可被用于 Git 工作流之中,因为使用 Git 管理站点时,文件的最后修改日期常常会发生改变
>
> empty: 直接删除 updated。使用这一选项可能会导致大部分主题和插件无法正常工作。
use_date_for_updated 选项已经被废弃,将会在下个重大版本发布时去除。请改为使用 updated_option: 'date'。

### CDN缓存刷新
> 该方案参考自:https://segmentfault.com/a/1190000039707833
>
> 腾讯云官方给我们提供了一个解决方案,可以在COS存储桶的函数计算->CDN缓存刷新函数中配置一个函数,参考截图:
![](https://image.bmqy.net/upload/[email protected])
>
>但这个方案存在一个问题,由于我们的静态网站有默认索引页面index.html,而官方提供的这个函数只会刷新对应的文件的URL,而不会刷新索引URL,例如http://www.bytelife.net/index.html这个文件,通常我们的请求是http://www.bytelife.net/,因此官方的方案针对于静态网站来说不算完美。
>
>优化方案
>可以通过简单修改官方的函数来解决这个问题,点击刚刚创建的CDN缓存刷新函数列表中的函数名称,将index.js文件内容替换为下面的代码,最后点击右上角的“部署”按钮即可:
``` js
/* eslint-disable no-param-reassign */
'use strict';

const TimeoutWatcher = require('./common/TimeoutWatcher');
const CosCdnRefreshTask = require('./common/CosCdnRefreshTask');
const { getParams, logger, getLogSummary } = require('./common/utils');

exports.main_handler = async (event, context) => {
/**
* set a timer to terminate the cdn refresh task, ensure log message is printed
*/
let runningTask;
const watcher = new TimeoutWatcher({
timeLimit: context.time_limit_in_ms,
trigger(error) {
if (runningTask && runningTask.cancelTask) {
runningTask.cancelTask(error);
}
},
error: new Error('task is timeout'),
});

logger({
title: 'param as follow: ',
data: { event },
});

/**
* parse param from event and process.env
*/
const { secretId, secretKey, token, objects, triggerType, cdnHosts } = getParams(event);

logger({
title: 'param is parsed success',
});

const taskResults = [];

const task = new CosCdnRefreshTask({
secretId,
secretKey,
token,
objects,
triggerType,
cdnHosts,
});

if (watcher.isTimeout()) {
// if current is timeout, trigger the cancel task in next tick
process.nextTick(() => task.cancelTask(watcher.error));
} else {
runningTask = task;
}

const results = await task.runTask();
results.forEach(item => {
taskResults.push(item)
// 如果以 /index.html 结尾,则增加目录首页/
// 例如 https://www.xxxx.com/index.html, 则增加 https://www.xxxx.com/
if(item.params.urls[0].lastIndexOf('/index.html') == (item.params.urls[0].length - 11)){
taskResults.push(item.substr(0, item.length - 10))
}
});

watcher.clear();

logger({
title: 'cos cdn refresh full logs:',
data: taskResults,
});

const { status, messages } = getLogSummary({
name: 'cos cdn refresh',
results: taskResults,
});

logger({
messages: messages.map(item => item.replace(/, /g, '\n')),
});

context.callbackWaitsForEmptyEventLoop = false;

if (status === 'fail') {
throw messages.join('; ');
} else {
return messages.join('; ');
}
};
```
## 更多
更多说明详见:https://www.bmqy.net/2649.html