shomaisshi / blog

blog
0 stars 0 forks source link

Hugo メモ #1

Open shomaisshi opened 3 years ago

shomaisshi commented 3 years ago

参考

GitHub Pages URL:

shomaisshi commented 3 years ago

記事を追加する

$ hugo new post/my-new-post.md

更新する

$ cd public/
$ git init
$ git remote add origin git@github.com:satzz/hugotest.git
$ git checkout -b gh-pages
$ git add --all
$ git commit -m'initial commit for gh-pages'
$ git push origin gh-pages
shomaisshi commented 3 years ago

ローカルサーバーで確認

hugo server

publicに生成する

hugo
shomaisshi commented 3 years ago

config.tomlファイル

baseurl = "https://shoma1219.github.io/blog"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "simple"
canonifyurls = true
publishdir = "public"