Hugo Server
Run Hugo Server
This step is how to run hugo with the minimum of configuration. It will let us actually see the site that we are building and we can then make changes to make it look and feel how we want it to.
- Open a window command prompt
- In the command prompt type:
cd c:/hugo/sites/example.com
This will change the current directory to c:\hugo\sites\example.com. This is the location that we set up earlier to contain the details of the site that we are creating. - In the command prompt type:
hugo server -D
This will start the Hugo server, and run our site. The -D flag is used to also display and draft pages that we are currently working on. This command will just continue to run in the background. - Access the url http://localhost:1313/ through your browser.
This will actually let us see the content of the site.
For more information, check out: