blob: e13929f29e0745d30d479b717236770a1864b925 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
+++
title = "Header"
description = ""
weight = 10
+++
Docport's Header displays Site Title and Site shortcuts.
![header](screenshot.png?classes=border,shadow)
## Site Title
As defined in site `config.toml`
## Site shortcuts (Top level menu)
If you want to add a link to a page or an external site to this menu, add it in `config.toml`, specifying the weight to order them.
```toml
[[menu.shortcuts]]
name = "Github"
identifier = "ds"
url = "https://github.com/vjeantet/hugo-theme-docport"
weight = 10
[[menu.shortcuts]]
name = "Download"
url = "https://github.com/vjeantet/hugo-theme-docport/archive/master.zip"
weight = 11
[[menu.shortcuts]]
name = "Hugo Documentation"
identifier = "hugodoc"
url = "https://gohugo.io/"
weight = 20
[[menu.shortcuts]]
name = "Credits"
url = "/docport-theme/credits/"
weight = 30
```
[{{%icon star %}} Read more about hugo and menu here](https://gohugo.io/extras/menus/)
## Overide header content
Create a `_layout/header/_index.md` page in content root folder.
Its content is what you get in the header (site shortscurs remains)
```bash
content/
└── _layout
└── header
├── _index.md
└── _index.fr.md
```
This allow you to define a localized header content.
## Hide site header
Set `hide_header=true` in your page's frontmatter, see [an example here]({{%relref "examples/page without header"%}})
|