1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
2018-08-15 13:25:28 -07:00

1.3 KiB

+++ title = "Configuration" description = "" weight = 2 +++

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 = "../.."

{{%excerpt%}}

If not already present, add the follow lines to the config.toml file.

[outputs]
home = [ "HTML", "RSS", "JSON"]

{{% /excerpt%}}

LUNRJS search index file will be generated on content changes.

(Bonus)

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

Preview site

$ hugo server

to browse site on http://localhost:1313

Your website's content

Find out how to [create]({{%relref "create-page/_index.md"%}}) and [organize your content]({{%relref "content-organisation/_index.md"%}}) quickly and intuitively.