Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 595 Bytes

File metadata and controls

23 lines (19 loc) · 595 Bytes

Setup for Camptocamp project sites

$ hugo new site hugo
$ git submodule add git@github.com:camptocamp/hugo-elate-theme.git hugo/themes/elate
$ echo 'theme = "elate"' >> hugo/config.toml 
$ touch hugo/content/.placeholder
$ git add hugo
$ echo "hugo/public" >> .gitignore
$ git commit -m "Add hugo"
 
$ git checkout --orphan gh-pages
$ git reset --hard
$ touch .nojekyll
$ git add .nojekyll
$ git commit -m "Initializing gh-pages branch"
$ git push -u origin gh-pages 
 
$ git checkout master 
$ git worktree add -B gh-pages hugo/public gh-pages