1.4 KiB
1.4 KiB
Nightfall
Nightfall is a minimal dark theme for Hugo
Get the theme
Import as hugo module in config.toml
:
[module]
[[module.imports]]
path = 'github.com/LordMathis/hugo-theme-nightfall'
OR
Import manually:
git clone https://github.com/LordMathis/hugo-theme-nightfall themes/nightfall
- Add
theme = "nightfall"
in yourconfig.toml
:
Configuration
For full example chech exampleSite/config.toml
Add these params to you config.toml
[params]
author = "Mr Hugo"
user = "hello"
hostname = "gohugo.io"
You can also add social links
[[params.social]]
key = 0
name = "github"
url = "https://github.com/gohugoio"
[[params.social]]
key = 1
name = "twitter"
url = "https://www.example.com"
[[params.social]]
key = 2
name = "linkedin"
url = "https://www.example.com"
[[params.social]]
key = 3
name = "email"
url = "mailto:email@example.com"
To add a menu item add [[menu.header]]
item to config.toml
. For example:
[menu]
[[menu.header]]
name = "posts"
weight = 0
url = "/posts"