Hugo 2 Build a Website

install Bookstrap themes and connect with your github page

build up a new site with hugo

1hugo new site parkman-auex.github.io

init you website

1cd parkman-auex.github.io
2git init
3git submodule add https://github.com/razonyang/hugo-theme-bootstrap themes/hugo-theme-bootstrap
4cp -a themes/hugo-theme-bootstrap/exampleSite/* .

push an existing repository from the command line

1git remote add origin https://github.com/parkman-auex/parkman-auex.github.io.git
2git branch -M main
3git add *
4git commit -m "first commit"
5git push -u origin main

preview

1hugo server

The website can be previewed on the local browser :

1http://localhost:1313/

public

1vi config.toml

set up your website

1baseURL = 'https://parkman-auex.github.io/'
2languageCode = 'en-us'
3title = 'parkman'
4publishDir = 'docs'

compile

1 hugo

git

1git add *
2msg="rebuilding site `date`"
3git commit -m "$msg"
4git push origin main

change Setting->Pages->Source to docs and Save

view on https://parkman-auex.github.io/


200 Words|This article has been read times