Local building
-
Install Hugo
Get the latest veriosn from https://github.com/gohugoio/hugo/releases.
-
Create a new site
hugo new site mylog -
Download a hugo theme, just like ”hugo-theme-jane“ .
cd myBlog git clone https://github.com/xianmin/hugo-theme-jane.git --depth=1 themes/jane -
Copy the example site content and config
cp -r themes/jane/exampleSite/content ./ cp themes/jane/exampleSite/config.toml ./ -
Run the hugo server, then open the example site http://localhost:1313/ .
hugo server
Connetct with github server
-
Run hugo, then generate the public directory.
hugo cd public -
Download the github repositories.
git clone git@github.com:yangpo95/yangpo95.github.io.git mv yangpo95.github.io/.git ./ git add . git commit -m "test" git push