logoBooGi

Sidebar

Git Repository Edit on Github
Last update: a month ago by Mateusz FilipowiczReading time: 2 min

Metadata base configuration can be set in config.yaml under sidebar key.

PropertyDescriptionRequiredDefault value
sidebar.enabledSet to true to enable sidebar.Yestrue
sidebar.ignoreIndexSet to true to not show main page (index) as first entry in the sidebar.Yesfalse
sidebar.forcedNavOrderList of paths, for which order in sidebar will be enforced. It has priority over any other order setting. Read more about navigation.No
sidebar.expandedList of paths which sidebar entries will be expanded by default, if they are nested.No
sidebar.groupsList of sidebar groups.No
sidebar.groups[].pathPath associated with the group. Read more about navigation to understand how to set this up.Yes
sidebar.groups[].titleGroup title, it can include emojis.Yes
sidebar.groups[].orderOrder number of groups. The lower number, the higher order and group will appear higher in sidebar. If not provided or there are groups with equal order, groups are sorted by name.No
sidebar.groups[].iconURL to icon associated with the group. You can mix using emojis in group title and group icons.No
sidebar.linksList of external links visible in at the bottom of sidebar.No
sidebar.links[].textText of the external link.Yes
sidebar.links[].linkExternal link URL.Yes
sidebar.poweredBy.trademarkLogo for the Powered By component.No
sidebar.poweredBy.nameName on the Powered By component. If name is not provided, Powered By component will be not visible.No
sidebar.poweredBy.linkURL to the page, which will appear when clicked on Powered By component.No

Full example:

sidebar:
enabled: true
forcedNavOrder:
- "/introduction"
- "/configuration/basic"
- "/configuration/advanced"
expanded:
- /configuration/advanced
groups:
- order: 1
path: "/gettingstarted"
title: "Getting Started"
icon: /assets/starting.png
- order: 2
path: "/configuration"
title: ":wrench: Configuration"
- order: 2
path: "/editing"
title: ":writing_hand: Editing Content"
ignoreIndex: false
links:
- text: BooGi
link: https://github.com/filipowm/boogi
poweredBy:
trademark: "/assets/gatsby.png"
name: GatsbyJS
link: https://www.gatsbyjs.org
Previous
Header
Next
Features