How_to_start_article_use_hugo 发表于: 2022-12-22 分类于: 其他 字数:170 阅读:≈ 1分钟 浏览: 开始写作一个文章【以跳过hugo安装等过程】 开始写作一个文章 本地打开hugo服务,以实时预览的模式 1 hugo server --buildDrafts 新建一个文件 1 hugo new /post/子路径/文件名.md 例如: hugo new /post/pre/how_to_start_article_use_hugo.md 生成静态文件 必须在根目录下进行【我使用的主题是hugo-theme-next】 1 hugo -t hugo-theme-next 托管到GitHub上 1 2 3 git add . git commit -m "message" git push 后记 长时间不写博客,手生了,记录一下过程。