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 config.toml
format.
Import sample config from sample site to Hugo root:
$ cp themes/docdock/exampleSite/config.toml .
Change following 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 config.toml
file.
[outputs]
home = [ "HTML", "RSS", "JSON"]
LUNRJS search index file will be generated on content changes.
Create empty file .gitkeep
inside 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:
/public/*
!/public/.gitkeep
$ hugo server
to browse site on http://localhost:1313
Find out how to create and organize your content quickly and intuitively.