Skip to content
Martin Svoboda edited this page Sep 26, 2018 · 3 revisions

Navigation is defined in _data/navigation.yml file. You can define two types of navigation items - links and groups (nested links).

Links

If you want add new link to navigation simple modify _data/navigation.yml file and add:

```
- title: Introduction
  url: /
```

This defines title of link and url where you want link.

Groups

If you have similar pages (for instance components) you probably want represent them in nested navigation (submenu). In this case use group parameter with name of group and submenu will be created automatically from all pages which belong to defined group. You can define group for page inside Front Matter section of page. See create content.

```
- title: Guidelines
group: guidelines
```

Ordering

Links in groups are sorted alphabetically by their title. If you want customize order, use order attribute in Front Matter section of page. See create content.

Clone this wiki locally