Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.md « toc « 02-navigation-search « content-and-customization « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f479b9023ea5908f4edbcb1f8637d8b3cfb9ce8 (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
+++
title = "Content right bar"
description = ""
weight = 50

+++

With each page, a sidebar is displayed on the right side, with the current table of content.
* the 2 dashed rectangles are 2 position where you can inject custom content, see bellow

![header](screenshot.png?classes=border,shadow)

## Add content before the Table of content
(red dashed rectangle in the screenshot)

Create a `_index.md` page in `_layout/_sidepage-before` folder.

```bash
	content/
	└──	_layout
		   └── article-sidepage-before
				├──	_index.md
				└──	_index.fr.md
```

## Add content after the Table of content
(blue dashed rectangle in the screenshot)

Create a `_index.md` page in `_layout/_sidepage-after` folder.

```bash
	content/
	└──	_layout
		   └── article-sidebar-after
				├──	_index.md
				└──	_index.fr.md
```

{{%alert info%}}**Remember :** You can put a full HTML content in your .md files{{%/alert%}}

{{%alert info%}}**Tip :** You can remove search box if you need to [see more here]({{%relref "search"%}})

{{%/alert%}}


## Hide right sidebar
Set `hide_toc=true` in your page's frontmatter, see [an example here]({{%relref "examples/page without toc"%}})