When building the website, you can set a theme by using
--theme option. We suggest you to edit your configuration file and set the theme by default. Example with
Import sample config from sample site to Hugo root:
$ cp themes/docdock/exampleSite/config.toml .
config.toml line as needed, depending on method above:
theme = "<hugo-theme-docdock-dir-name>"
Comment out following line, so default
themes/ will be used:
# themesdir = "../.."
If not already present, add the follow lines to the
[outputs] home = [ "HTML", "RSS", "JSON"]
LUNRJS search index file will be generated on content changes.
Create empty file
public/ and add following to
.gitignore. This way it will keep repo smaller and won’t bring build result files and errors to remote checkout places:
$ hugo server
to browse site on http://localhost:1313
Your website’s content
Find out how to create and organize your content quickly and intuitively.