shotor / hugo-codespaces-example

Hugo + GitHub Codespaces example repository

Home Page:https://shotor.com/blog/build-a-hugo-static-site-in-your-browser-using-github-codespaces/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hugo-codespaces-example

Example repository for Hugo and GitHub Codespaces.

Check out the blog post for this repository.

Check out the demo at https://pensive-sammet-17c943.netlify.app/.

Dependencies

Usage

Debug locally

hugo server -D

Debug on codespaces

  1. Open the remote explorer sidebar in Codespaces.
  2. Forward port 1313
  3. Right click on entry and copy the url

Run the server command with copied url

hugo server -D --baseUrl "https://{githubUrl}" --appendPort=false

Build

hugo build

License

MIT