2017-08-10 11:18:22 -04:00
---
title: Quick Start
linktitle: Quick Start
description: Create a Hugo site using the beautiful Ananke theme.
date: 2013-07-01
publishdate: 2013-07-01
categories: [getting started]
2017-09-21 13:03:00 -04:00
keywords: [quick start,usage]
2017-08-10 11:18:22 -04:00
authors: [Shekhar Gulati, Ryan Watters]
menu:
docs:
parent: "getting-started"
weight: 10
weight: 10
sections_weight: 10
draft: false
aliases: [/quickstart/,/overview/quickstart/]
toc: true
---
{{% note %}}
This quick start uses `macOS` in the examples. For instructions about how to install Hugo on other operating systems, see [install ](/getting-started/installing ).
2019-02-01 03:01:04 -05:00
It is recommended to have [Git installed ](https://git-scm.com/downloads ) to run this tutorial.
2017-08-10 11:18:22 -04:00
{{% /note %}}
## Step 1: Install Hugo
{{% note %}}
`Homebrew` , a package manager for `macOS` , can be installed from [brew.sh ](https://brew.sh/ ). See [install ](/getting-started/installing ) if you are running Windows etc.
{{% /note %}}
```bash
brew install hugo
```
To verify your new install:
```bash
hugo version
```
2019-03-26 13:41:09 -04:00
{{< asciicast ItACREbFgvJ0HjnSNeTknxWy9 > }}
2017-08-10 11:18:22 -04:00
## Step 2: Create a New Site
```bash
hugo new site quickstart
```
The above will create a new Hugo site in a folder named `quickstart` .
2019-03-26 13:41:09 -04:00
{{< asciicast 3mf1JGaN0AX0Z7j5kLGl3hSh8 > }}
2017-08-10 11:18:22 -04:00
## Step 3: Add a Theme
See [themes.gohugo.io ](https://themes.gohugo.io/ ) for a list of themes to consider. This quickstart uses the beautiful [Ananke theme ](https://themes.gohugo.io/gohugo-theme-ananke/ ).
```bash
2019-02-01 03:01:04 -05:00
cd quickstart
# Download the theme
git init
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
# Note for non-git users:
# - If you do not have git installed, you can download the archive of the latest
# version of this theme from:
# https://github.com/budparr/gohugo-theme-ananke/archive/master.zip
# - Extract that .zip file to get a "gohugo-theme-ananke-master" directory.
# - Rename that directory to "ananke", and move it into the "themes/" directory.
# End of note for non-git users.
2017-08-10 11:18:22 -04:00
# Edit your config.toml configuration file
# and add the Ananke theme.
echo 'theme = "ananke"' >> config.toml
```
2019-03-26 13:41:09 -04:00
{{< asciicast 7naKerRYUGVPj8kiDmdh5k5h9 > }}
2017-08-10 11:18:22 -04:00
## Step 4: Add Some Content
```
hugo new posts/my-first-post.md
```
2019-03-26 13:41:09 -04:00
{{< asciicast eUojYCfRTZvkEiqc52fUsJRBR > }}
2017-08-10 11:18:22 -04:00
2019-02-01 03:01:04 -05:00
Edit the newly created content file if you want.
## Step 5: Start the Hugo server
Now, start the Hugo server with [drafts ](/getting-started/usage/#draft-future-and-expired-content ) enabled:
2017-08-10 11:18:22 -04:00
2019-03-26 13:41:09 -04:00
{{< asciicast BvJBsF6egk9c163bMsObhuNXj > }}
2017-08-10 11:18:22 -04:00
```
▶ hugo server -D
2019-03-26 13:41:09 -04:00
| EN
+------------------+----+
Pages | 10
Paginator pages | 0
Non-page files | 0
Static files | 3
Processed images | 0
Aliases | 1
Sitemaps | 1
Cleaned | 0
Total in 11 ms
Watching for changes in /Users/bep/quickstart/{content,data,layouts,static,themes}
Watching for config changes in /Users/bep/quickstart/config.toml
Environment: "development"
2017-08-10 11:18:22 -04:00
Serving pages from memory
2019-03-26 13:41:09 -04:00
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
2017-08-10 11:18:22 -04:00
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
```
**Navigate to your new site at [http://localhost:1313/ ](http://localhost:1313/ ).**
2019-02-01 03:01:04 -05:00
## Step 6: Customize the Theme
2017-08-10 11:18:22 -04:00
Your new site already looks great, but you will want to tweak it a little before you release it to the public.
### Site Configuration
Open up `config.toml` in a text editor:
```
baseURL = "https://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"
```
2019-02-01 03:01:04 -05:00
Replace the `title` above with something more personal. Also, if you already have a domain ready, set the `baseURL` . Note that this value is not needed when running the local development server.
2017-08-10 11:18:22 -04:00
{{% note %}}
2018-09-23 17:48:53 -04:00
**Tip:** Make the changes to the site configuration or any other file in your site while the Hugo server is running, and you will see the changes in the browser right away, though you may need to [clear your cache ](https://kb.iu.edu/d/ahic ).
2017-08-10 11:18:22 -04:00
{{% /note %}}
For theme specific configuration options, see the [theme site ](https://github.com/budparr/gohugo-theme-ananke ).
**For further theme customization, see [Customize a Theme ](/themes/customizing/ ).**