Varitrip Blog Site source code.
Install Hugo On Mac:
brew cask install hugo
Create post by hugo:
hugo new post/example.md
Edit content/post/example.md
as your wish, Hugo use Markdown Extension Mmark Syntax.
Use make
to run http server on http://localhost:1313
, view and verify your blog post.
Undraft your blog post hugo undraft content/post/example.md
Commit and push your changes:
git add content/post/example.md
git commit -m "Add example blog post"
git push origin source:source
Wait Travis build done, It usually takes 1 minute.
Visit Blog Site to view your post.