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/.
hugo server -D
- Open the
remote explorer
sidebar in Codespaces. - Forward port 1313
- Right click on entry and copy the url
Run the server command with copied url
hugo server -D --baseUrl "https://{githubUrl}" --appendPort=false
hugo build
MIT