From the course: Learning Static Site Building with Hugo

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Preview the site locally

Preview the site locally

From the course: Learning Static Site Building with Hugo

Start my 1-month free trial

Preview the site locally

- [Instructor] Let's take a look at what the site looks like so far. In the terminal, I can run hugo server. This command will build all of the site files, and then Hugo will post them for us in memory. Now I can open a browser and go to localhost:1313. You should see the basic layout and structure of the site. Hugo is hosting this preview for you on your local machine, and it's not available or accessible to anyone else. If you make changes to the site files, this preview server will update immediately. For example, if we change the header_title property in the configuration file to something like my awesome static site, and then save this file, the preview in the browser is updated before we even have a chance to switch back. Hugo updates really fast. This is looking good so far, but now it's time to add some real content to the site.

Contents