<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 下載二進制文件 * ubuntu16.04 * github: https://github.com/gohugoio/hugo/releases 下載文件后解壓 ``` $ tar -zxvf hugo_0.79.1_Linux-64bit.tar.gz $ cd hugo_0.79.1_Linux-64bit $ export PATH='pwd':$PATH ``` 驗證安裝是否成功 ``` $ hugo version Hugo Static Site Generator v0.79.1-EDB9248D linux/amd64 BuildDate: 2020-12-19T15:42:17Z ``` ## 開始搭建博客 創建站點 ``` $ hugo new site ccblog $ cd ccblog ``` [hugo主題選擇](https://themes.gohugo.io/hugo-theme-dream/) https://themes.gohugo.io/hugo-tranquilpeak-theme/ https://themes.gohugo.io/anatole/ 下載主題: ``` $ cd themes && git clone https://github.com.cnpmjs.org/g1eny0ung/hugo-theme-dream.git dream $ vim ../config.yaml theme = "dream" ``` 啟動博客 ``` hugo server -t dream --buildDrafts ``` ## 寫博客并上傳 md格式語法大家稍微了解一下,在test下新建一篇博客firstblog ``` hugo new test/firstblog.md ``` ## 部署博客到Github 在github新建一個倉庫,名字必須為你的github純小寫字母名字+github.io ### 使用cmd上傳到github 首先生成public文件夾,下面命令你的`baseUrl`中改成自己的名字 ``` hugo --theme=dream --baseUrl="" --buildDrafts ``` 然后進public創建git倉庫,上傳github ``` cd public git init git add . git commit -m "部署Hugo博客第一次測試" //提交一次 git remote add origin https://github.com/zengxiaochao/zengxiaochao.github.io.git //關聯遠端github倉庫 git push -u origin master //推上去 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看