- Install hugo > 0.68.0
git clone https://github.com/starcoinorg/starcoin-org-v3.git
git submodule update --init
--minify
will changeinitial-scale
value in html header meta tag from 1.0 to 1:
<meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" name="viewport" />
to
<meta content="width=device-width;initial-scale=1;maximum-scale=1;user-scalable=0" name="viewport" />
)which will cause responsive layout bug in phone.
hugo server --port 8004
open http://localhost:8004/
in browser
Note: if the site does not update with changes, try to open the Chrome/Safari console, and press Ctrl+R to forcibly reload the static files.
- generate public folder
./build.sh
- serve pubic folder as static site
serve ./public -l 8004
- open
http://localhost:8004
in browser
./publish.sh
3.Using GitHub Actions and Hugo Deploy to Deploy a Static Site to AWS