/taiji-blog

Hugo Taiji-blog

MIT LicenseMIT

Making Taiji-blog Hugo

https://taijiji.github.io/taiji-blog/

make new blog

$ hugo new site taiji-blog

Hugo Theme

Keira

cd themes
git clone --recursive git@github.com:avianto/hugo-kiera.git

edit config.toml

$ vi config.toml

baseURL = "https://taijiji.github.io/taiji-blog/"
languageCode = "en-us"
title = "taiji-blog"
theme = "hugo-kiera"
canonifyurls = true
publishdir = "public"

preview

cd taiji-blog
hugo server -t hugo-kiera --watch

web browse http://localhost:1313/taiji-blog/

hosting on Github pages

$ hugo 
$ cd public/
$ git init
$ git remote add origin git@github.com:taijiji/taiji-blog.git
$ git checkout -b gh-pages
$ git add --all
$ git commit -m'initial commit for gh-pages'
$ git push origin gh-pages
$ vi .gitignore

themes
public
*.swp
$ cd ../../
$ git remote add origin git@github.com:taijiji/taiji-blog.git
$ git add .
$ git commit -m'initial commit'
$ git push origin master

Post blog

$ hugo new post/20171217.md

/Users/taiji/work/hugo_taiji-blog/content/post/20171217.md created

edit blog

vi content/post/20171217.md
---
title: "20171217"
date: 2017-12-17T18:45:04-08:00
draft: true
---

# sample blog
print(Hello Hugo!)
hugo

Reference