Hugo Setup
Reference:
Hugo Quick start
Hextra Theme
Host on GitLab Pages
| |
and…
| |
Before running hugo run…
git submodule update --initBuild the site
hugo…or if you want to build drafts…
hugo --buildDraftsDraft files will not be compiled by CI/CD
You do not have to build the site to run push to GitLab
Setup git
git init
git add *
git commit -m "first commit"create .gitignore to ignore public
/publicgit remote add origin ssh://git@gitlab.com/hugo9045842/hextra.gitgit push -u origin masterremote:
To ssh://gitlab.com/hugo9045842/hextra.git
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.