This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:qclug_presentations:hugo [2016/08/10 03:28] Aaron Johnson [Create site] |
wiki:qclug_presentations:hugo [2016/08/10 04:01] Aaron Johnson [Credits] |
||
---|---|---|---|
Line 40: | Line 40: | ||
cd newsite | cd newsite | ||
git init . | git init . | ||
- | git checkout --orphan gh-pages | + | git remote add origin https://github.com/username/yourproject-hugo.git |
+ | rm -rf public | ||
+ | git submodule add -b master https://github.com/username/username.github.io.git public | ||
+ | hugo --baseURL http://username.github.io --theme hugo-uno | ||
+ | cd public | ||
+ | git add . | ||
+ | git commit -a -m "rebuilding site `date`" | ||
+ | git push origin master | ||
+ | cd .. | ||
+ | git add . | ||
+ | git commit -a -m "project repo for hugo site `date`" | ||
+ | git push origin master | ||
</code> | </code> | ||
+ | |||
+ | ====== Credits ====== | ||
+ | Steps in this guide were taken from the following documentation/tutorials: | ||
+ | |||
+ | https://gohugo.io/tutorials/github-pages-blog | ||
+ | |||
+ | https://www.youtube.com/watch?v=w7Ft2ymGmfc | ||
+ |