Skip to content

shotor/hugo-codespaces-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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