搭建本地的hugo我的博客:http://www.javashuo.com/article/p-fiyufgkv-gg.htmlgit
搭建好的博客地址示例: https://zhang-550.github.io/post/github
前提是先搭建好本地的hugo我的博客ssh
改爲本身的github地址post
github 地址 https://github.com
點擊new進行建立url
建立完成後這裏便可看到剛剛建立的倉庫.net
點進去剛剛建立的倉庫code
本地啓動須要執行以下命令: hugo server
訪問該路徑便可看到本身的博客了: localhost:1313 若是不行,看下以前搭建本地hugo博客中的3.2.2步驟中是否刪掉了draft:true或者將draft改成了falseserver
搭建本地hugo我的博客地址: http://www.javashuo.com/article/p-fiyufgkv-gg.htmlblog
執行hudo命令,生成public目錄: hugo
//依次執行以下命令: 複製便可,避免敲錯 git pull //若是不行使用: git pull --rebase origin master git init git remote rm origin //換成本身的github上的ssh路徑,在上面 1.2.5 步驟4 中已經講解如何查看ssh路徑 //示例: git remote add origin 改爲本身的路徑 git remote add origin https://github.com/zhang-550/zhang-550.github.io.git git add -A git commit -m "first commit" git push -u origin master
部署完成後訪問我的的路徑是: 第一步配置config.toml文件中的basrurl路徑 示例: https://改爲本身的倉庫路徑/ https://zhang-550.github.io/