You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Iniciar Proyecto Hugo
$ hugo new site fcchn4.github.io
# Dentro del Proyecto Hugo
$ cd fcchn4.github.io
$ echo public > .gitignore
$ git init
$ git remote add origin git@github.com:fcchn4/fcchn4.github.io.git
Agregando un Theme
# Agregando Theme como un submodulo
$ git submodule add git@github.com:fcchn4/hugo-theme-hello-friend-ng.git themes/hello-friend-ng
$ echo'theme = "hello-friend-ng"'>> config.toml
# Para Probar el nuevo proyecto Hugo
$ hugo server --watch -D
# Subir cuerpo completo del proyecto
$ git add .
$ git commit -m 'first hugo'
$ git push origin main
Creando rama para despliegue
# Creamos una rama "deploy" para desplegar el sitio
$ git checkout --orphan deploy
$ git add .
$ git commit -m 'deploy branch'
$ git push origin deploy
Estableciendo rama deploy como contenido web estatico
# Cambio de rama deploy
$ git checkout main
$ mkdir public
$ git worktree add -B deploy public origin/deploy
# Borrando contenido de rama deploy
$ cd public
$ rm -r *&& rm -r .gitignore .gitmodules
Clonar el repositorio
$ git clone --recurse-submodules git@github.com:fcchn4/fcchn4.github.io.git
$ cd fcchn4.github.io
$ mkdir public
$ git worktree add -B deploy public origin/deploy