/aztroop201-website

BSA Troop 201 Website

Primary LanguageHTMLCreative Commons Zero v1.0 UniversalCC0-1.0

aztroop201

Arizona Troop 201 Hugo Website content

References

Commands

Create new site

hugo new site home
  1. Download a theme into the same-named folder. Choose a theme from https://themes.gohugo.io/ or create your own with the "hugo new theme " command.
  2. Perhaps you want to add some content. You can add single files with "hugo new /.".
  3. Start the built-in live server via "hugo server".

Theme setup

Do this in each clone

git submodule add https://github.com/budparr/gohugo-theme-ananke.git home/themes/ananke

Publish outside of actions

git worktree add -B gh-pages public upstream/gh-pages

Automatic with git actions

https://github.com/peaceiris/actions-gh-pages#options

Setup local dev env

  1. Install Hugo

    snap install hugo
  2. Clone Repo

  3. Init submodules

    git submodule update --init --recursive
  4. hugo server

    # Local binding
    hugo server -D --bind "0.0.0.0" -p 8080
    
    #Chromebook/Crostini Shortcut when localhost doesn't work
    hugo server -D --bind "0.0.0.0" -b "http://penguin.termina.linux.test"