forked from drowl87/hextra_mirror
940 B
940 B
title | weight |
---|---|
Getting Started | 1 |
Start as New Project
Before we start, make sure we have Hugo installed. We also need to have Git and Go installed if we want to use Hugo modules. Please refer to Hugo's official installation guide for more details.
{{% steps %}}
Initialize a new Hugo site
$ hugo new site my-site --format=yaml
Configure Hextra theme
Hugo modules are the recommended way to manage Hugo themes.
# initialize hugo module
$ cd my-site
$ hugo mod init github.com/username/my-site
# add Hextra theme
$ hugo mod get github.com/imfing/hextra
Edit config.yaml
to enable Hextra theme:
module:
imports:
- path: github.com/imfing/hextra
Run Hugo server
$ hugo server -D
Voila! You can see your new site at http://localhost:1313/
.
{{% /steps %}}