Sidebar Navigation
This project uses two data sources to build the sidebar:
- Docs pages from
src/content/docs - Custom links from
src/content/sidebar-links
Custom links are managed as content entries, not in config.json.
Add a Sidebar Link
Create a new file in src/content/sidebar-links, for example:
---
title: GitHub
href: https://github.com/your-org/your-repo
section: Resources
order: 10
open_in_new_tab: true
---
Frontmatter Fields
title(required): Sidebar labelhref(required): Destination URL/pathsection(required): Group heading in the sidebarorder(optional): Sort order inside a section (lower comes first)open_in_new_tab(optional): Open this link in a new tabdraft(optional, defaultfalse): Hide link whentrue
Grouping Rules
- If
sectionmatches an existing docs section, the link is merged into that group. - If
sectionis new, a new group is created in the sidebar. - Links are sorted by:
section->order->title.
Internal vs External Links
- External URLs (
http://orhttps://) are treated as external for active-state logic. - If
open_in_new_tabis not set, external URLs default to opening in a new tab. - Internal links can still be forced to open in a new tab by setting
open_in_new_tab: true.
Hide “Made with Atlas”
In config.json, set:
{
"site_title": "Atlas",
"hide_made_with_atlas": true
}
Notes
- The old
sidebar_sectionsconfig path is no longer used. - The old
externalfield is no longer used.