Skip to content

Latest commit

 

History

929 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

云游君的小站站点源文件

Deploy Valaxy site to GitHub Pages Netlify Status

Use

CMS 内容维护

日常文章、草稿和独立页面可以通过 云栈 维护。仓库已配置 .yunlefun/cms.json,连接时选择:

  • 仓库:YunYouJun/yunyoujun.github.io
  • 分支:valaxy
  • 项目目录:.

CMS 只保存云草稿,并通过独立分支和 Pull Request 发布,不会直接修改目标分支。日期格式、内容集合、预览边界和当前已知注意事项见 CMS 内容维护手册。

日常发布

发布时,同时推送至 GitHub 与 Coding 的 hexo 分支备份,使用 CI (GitHub Actions) 生成静态页面推送至 GitHub

npm run backup
# or
# yarn backup
# or
sh backup.sh
# sh backup.sh 'change info'

BackUp

git clone https://github.com/YunYouJun/yunyoujun.github.io
# coding
git remote add coding https://e.coding.net/YunYouJun/yunyoujun.coding.me.git

同时推送

git remote set-url --add origin https://e.coding.net/YunYouJun/yunyoujun.coding.me.git

Build

备案模式

默认构建完整站点:

pnpm build
# 等同于
pnpm build:normal

需要临时切换为备案模式时使用:

pnpm build:beian

本地开发默认展示完整站点,可通过 pnpm dev:beian 预览备案模式。备案模式由环境变量 VITE_BEIAN_MODE=true 控制,仅隐藏广告、赞助、群聊、评论、搜索等公开入口,原有文章和子页面 URL 仍然保留。

旧版 - Hexo 版本

Install Theme

git clone https://github.com/YunYouJun/hexo-theme-yun themes/yun

More info about hexo-theme-yun

CDN

JSDELIVR

JSDELIVR

腾讯云

Tencent Cloud

# https://cloud.tencent.com/document/product/440/111345
tccli auth login

EdgeOne 刷新缓存

# EdgeOne yunyoujun.cn
# https://cloud.tencent.com/document/product/1552/70759
tccli teo CreatePurgeTask --ZoneId zone-32usfya3lb5o --Type purge_host --Targets '["www.yunyoujun.cn"]'

刷新目录

# 注意这里的参数是 Array
tccli cdn PurgePathCache --Paths '["https://www.yunyoujun.cn/links/"]' --FlushType flush

刷新路径

tccli cdn PurgeUrlsCache --Urls '["https://www.yunyoujun.cn/links/index.html"]'

又拍云

upyun

图床:又拍云云存储 + PicGo = https://upyun.yunyoujun.cn

Commit Lint

gitmoji

git commit -m 'xxx'

更新博客内容

📝 update

Fixing typos

✏️ typo

UI

💄 xxx

Improving structure / format of the code

🎨 xxx

Fixing CI Build

💚 travis

Changing configuration files

🔧 config

Other

chore(xxx): xxx

About

🌐 云游君的小站,一个自言自语的地方。

Resources

Stars

193 stars

Watchers

5 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages