diff --git a/README.md b/README.md index cfcee6cdb1..7e09ce86df 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,10 @@

blog

-> 💧 [Blog](https://github.com/dunwu/blog/) 是一个十年 Java 程序员的博客。 +> 💧 [Blog](https://github.com/2992253553/Blog/) 是一个十年 Java 程序员的博客。 > -> - 🔁 项目同步维护:[Github](https://github.com/dunwu/blog/) | [Gitee](https://gitee.com/turnon/blog/) -> - 📖 电子书阅读:[Github Pages](https://dunwu.github.io/blog/) | [Gitee Pages](https://turnon.gitee.io/blog/) +> - 🔁 项目同步维护:[Github](https://github.com/2992253553/Blog/) | [Gitee](https://gitee.com/Privat5418/blog/) +> - 📖 电子书阅读:[Github Pages](https://Privat5418.github.io/Blog/) | [Gitee Pages](https://Privat5418.gitee.io/blog/) ## Java @@ -708,4 +708,4 @@ ## 🚪 传送 -◾ 💧 [钝悟的 IT 知识图谱](https://dunwu.github.io/waterdrop/) ◾ 🎯 [钝悟的博客](https://dunwu.github.io/blog/) ◾ +◾ 💧 [钝悟的 IT 知识图谱](https://dunwu.github.io/waterdrop/) ◾ 🎯 [钝悟的博客](https://xireiki.de5.net/) ◾ diff --git a/_config.cloudflare.yml b/_config.cloudflare.yml new file mode 100644 index 0000000000..92eb497ee1 --- /dev/null +++ b/_config.cloudflare.yml @@ -0,0 +1,20 @@ +# Cloudflare Pages 专用配置 +# 覆盖默认配置 + +# URL +url: https://xireiki.de5.net/ # 替换为你的 Cloudflare Pages 域名 +root: / + +# 部署设置 +deploy: + type: git + repo: + branch: main + message: "Deploy to Cloudflare Pages" + +# 资源路径设置 +cdn: + enable: false # 如果使用 CDN,设为 true 并配置下面的 CDN 地址 + +# 静态资源前缀(如果需要在子目录下) +static_prefix: / \ No newline at end of file diff --git a/_config.next.yml b/_config.next.yml index 59ba48fe7c..74850f979c 100644 --- a/_config.next.yml +++ b/_config.next.yml @@ -167,14 +167,14 @@ site_state: true # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: - GitHub: https://github.com/dunwu || fab fa-github - E-Mail: mailto:forbreak@163.com || fa fa-envelope - #Weibo: https://weibo.com/yourname || fab fa-weibo + GitHub: https://github.com/2992253553 || fab fa-github + E-Mail: 2992253553@qq.com || fa fa-envelope + Weibo: https://weibo.com/7110018733 || fab fa-weibo #Google: https://plus.google.com/yourname || fab fa-google - #Twitter: https://twitter.com/yourname || fab fa-twitter + Twitter: https://twitter.com/Privat5418 || fab fa-twitter #FB Page: https://www.facebook.com/yourname || fab fa-facebook #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow - #YouTube: https://youtube.com/yourname || fab fa-youtube + YouTube: https://youtube.com/@Privat5418 || fab fa-youtube #Instagram: https://instagram.com/yourname || fab fa-instagram #Skype: skype:yourname?call|chat || fab fa-skype diff --git a/_config.yml b/_config.yml index 4580848ef0..84bafcdd93 100644 --- a/_config.yml +++ b/_config.yml @@ -13,7 +13,7 @@ timezone: # URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' -url: https://dunwu.github.io/blog +url: https://xireiki.de5.net root: /blog/ #permalink: :year/:month/:day/:title/ #permalink: :abbrlink.html diff --git a/package.json b/package.json index 39f31450cd..1abdcb0b5a 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "draft": "hexo new draft \"Title\"", "clean": "hexo clean", "start": "hexo clean & hexo server -l -p 4000", - "build": "hexo clean & hexo generate", - "deploy": "bash deploy.sh" + "build": "hexo clean && hexo generate --config _config.yml,_config.cloudflare.yml", + "deploy": "npm run build && npx wrangler deploy" }, "dependencies": { "hexo": "^6.1.0", @@ -32,4 +32,4 @@ "devDependencies": { "hexo-cli": "^4.3.0" } -} \ No newline at end of file +} diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000000..c1e16b0b38 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,11 @@ +{ + "name": "blog", + "compatibility_date": "2025-12-16", + "assets": { + "directory": ".temp" + } + +} + + +