Hugo Hugo命令 backup 新建站点 1 hugo new site hugoblog 清楚缓存 1 hugo -F --cleanDestinationDir 新建文章 1 2 hugo new content/post/Hugo/index.md hugo new content/post/04/21/DEA-Net.md 启动 serve 1 2 hugo server -D --navigateToChanged hugo server 推送远程 首先,根目录执行: 1 hugo 进入: public 文件夹 1 cd public 接着命令行执行&推送: 1 2 3 git add . git commit -m"Date" git push origin main https://github.com/dearRongerr/dearRongerr.github.io.git 元数据设置 1 2 3 4 5 6 7 8 9 10 11 --- date: 2025-05-05T18:45:50 +08:00 draft: false title: MacOS 自定快捷指令 math: true toc: true categories: ['Hugo'] tags: ['Python'] series: ["Hugo + Obsidian"] series_order: 1 # 文章在系列中的顺序 ---