User Tools

Site Tools


wiki:qclug_presentations:hugo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:qclug_presentations:hugo [2016/08/10 03:22]
Aaron Johnson [Hugo - Hosted on GitHub Pages]
wiki:qclug_presentations:hugo [2016/08/10 04:01]
Aaron Johnson [Credits]
Line 23: Line 23:
 hugo new post/​welcome.md hugo new post/​welcome.md
 git clone https://​github.com/​fredrikloch/​hugo-uno.git themes/​hugo-uno git clone https://​github.com/​fredrikloch/​hugo-uno.git themes/​hugo-uno
-vim config.toml 
-</​code>​ 
-  * Add the following line: 
-<​code>​ 
-theme = "​hugo-uno"​ 
 </​code>​ </​code>​
  
 ===== Run site with Hugo ===== ===== Run site with Hugo =====
 <​code>​ <​code>​
-hugo server -w --bind 0.0.0.0 --baseURL http://​hostname.domain.local --port 1313+hugo server -w --bind 0.0.0.0 --baseURL http://​hostname.domain.local --port 1313 --theme hugo-uno
 </​code>​ </​code>​
  
Line 39: Line 34:
   * Create a free account at github.com   * Create a free account at github.com
   * Create two Public repositories (must be Public repositories if you want to use GitHub pages for free)   * Create two Public repositories (must be Public repositories if you want to use GitHub pages for free)
-    * username.github.io (it will host the public folder: the static website) +    ​* **username.github.io** (it will host the public folder: the static website) 
-    * your_project-hugo (it will host Hugo’s content)+    * **yourproject-hugo** (it will host Hugo’s content)
  
 <​code>​ <​code>​
-mkdir newsite +cd newsite
-cd +
 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>​ 
 + 
 +====== 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
  
wiki/qclug_presentations/hugo.txt · Last modified: 2016/08/10 04:16 by Aaron Johnson