@echo off chcp 65001 >nul cd /d "D:\Blog\huyangpahuo"
echo ===== 1. generate ===== echo Generating files and optimizing images... call hexo generate if errorlevel 1 pause & goto :eof echo 🛠️ [Generate] Done! Site files are ready.
echo ===== 2. deploy ===== echo Deploying to GitHub Pages... call hexo deploy if errorlevel 1 pause & goto :eof echo 🥳 [Deploy] Done! Everything pushed to the cloud.
echo ===== Finished! ===== echo 👑 [Success] Optimized version is now live! echo Your site should be live soon at https://funingna-wakawaka.github.io pause
echo ===== 2. generate ===== call hexo generate if errorlevel 1 pause & goto :eof echo 🛠️ [Generate] Done! Site files are ready.
echo ===== 3. deploy ===== echo Deploying to GitHub Pages... call hexo deploy if errorlevel 1 pause & goto :eof echo 🥳 [Deploy] Done! Everything pushed to the cloud.
echo ===== Finished! ===== echo 👑 [Success] Original assets deployed perfectly! echo Your site should be live soon at https://funingna-wakawaka.github.io pause
preview.bat
本地预览,这个目前还在用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
@echo off chcp 65001 >nul cd /d "D:\Blog\huyangpahuo"
echo ===== 2. generate ===== call hexo generate if errorlevel 1 pause & goto :eof echo 🛠️ [Generate] Done! Site files are ready.
echo ===== 3. server ===== echo 🔔 [Reminder]: If you see the message 'Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.', just refresh your browser at that URL to preview your website! start http://localhost:4000/ echo 🌐 [Server] Local server is running... call hexo server
评论区