将 photo/ 文件夹中的新照片同步到网站并发布
方式一(推荐):下载下方的 Quick Action 文件,双击安装到 macOS。 安装后在任何 Finder 窗口的「快速操作」中即可点击运行。
⬇ 下载 macOS Quick Action方式二:在终端复制粘贴运行:
cd /Users/sunminwen/Documents/GitHub/smwswk.github.io && bash sync_photos.sh
同步脚本会自动:生成缩略图 → 复制原图到 static/photo/ → 重新构建 Hugo → git commit + 推送。 推送后约 1 分钟 GitHub Pages 自动生效。