Bring docs current

main
earnest ma 2021-11-30 10:07:29 -05:00
parent 62146e84cd
commit 9edfd060ed
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 51 additions and 0 deletions

View File

@ -1,3 +1,54 @@
---
title: Configuration
---
## config.toml
```toml
baseURL = "https://example.org/"
languageCode = "en-us"
title = "Your digital garden"
theme = ["nwt"] # you do not need this if using as a Hugo module
copyright = "(c) <your name> <year>"
enableEmoji = true
enableGitInfo = true
[author]
name = "<your name>"
[params]
favicon = "/favicon.ico" # Place in static/favicon.ico
GitRepo = "" # Your git repo URL (no trailing slash needed)
[[menu.main]]
name = "Wiki"
url = "/wiki"
weight = 100
[[menu.main]]
name = "External link"
url = "https://example.org"
weight = 200
```
## Expected files
`content/wiki/_index.md` with a `title: Index` set.
## Pinned pages
Pinned pages will show on the top menu bar after your `main` menu items. You can easily set this in the page metadata with `menu: pinned`.
## Footer pages
`menu: footer`
## Table of Contents
To enable table of contents for a pages, set `enabletoc: true`.
## Custom partials
The partial `head-custom.html` is applied after `head.html`, you can create your own copy at `layouts/partials/head-custom.html` to overwrite it.