Skip to main content
blog.json sits at the root of your site folder. Every setting is optional except name, and the whole file is optional too, so without it the site builds with the defaults below and the site name from the dashboard.

JSON Schema

Start the file with $schema to get autocomplete and inline errors in VS Code, Cursor, Zed and JetBrains editors:
blog.json
Notra publishes the schema at usenotra.com/schemas/blog.json (JSON Schema draft 2020-12), and you can also use it to validate the file in CI or generate types:

Validation

Every build checks blog.json before it builds anything, and mistakes stop the build, with the deployment log and the GitHub check naming the setting and what to change:
  • Notra ignores an unknown top-level setting with a warning that suggests the closest match, like Unknown setting "navBar" is ignored. Did you mean "navbar"?.
  • Unknown keys inside authors, integrations and security stop the build, because a typo there would turn something off without any warning.
  • Notra ignores other unknown nested keys.
The tables below use these shared formats:

Icons

Notra bundles a set of Lucide icons, and a name outside it is ignored: a link shows without an icon, and a page action falls back to arrow-up-right. You can use arrow-left, arrow-right, arrow-up-right, bell, book, book-marked, book-open, bookmark, box, briefcase, building-2, calendar, chart-line, check, chevron-down, circle-check, circle-help, clock, close, cloud, code, compass, copy, cpu, credit-card, database, dollar-sign, download, external-link, file-text, flag, gift, git-branch, github, globe, graduation-cap, handshake, headphones, heart, house, image, info, layers, layout-dashboard, library, life-buoy, lightbulb, link, linkedin, list, lock, mail, map, megaphone, menu, message-circle, message-square, mic, monitor, moon, newspaper, notebook-pen, octagon-alert, package, palette, pen-line, play, plus, puzzle, rocket, rss, search, settings, shield, sparkles, star, sticky-note, sun, tag, terminal, text-align-start, triangle-alert, trophy, user, users, video, wrench, x, youtube, zap.

Site

Sections

blog.json
  • Without sections, the paths come from Settings → Content → Sections.
  • With sections, the site takes them over when a production build with them goes live, and the dashboard shows them read-only. A failed build changes nothing.
  • Preview builds use the sections of their branch, so you can check a move before you merge it.
  • The deployment log warns when a section moves or turns off. Add redirects for its old URLs, and update your rewrite if you forward paths to Notra.
  • Remove sections to manage the paths in the dashboard again. The site keeps its current paths.
  • notra dev and notra sites build serve the same paths unless you pass --mount.

Design

See Design and CSS. See Logo, navigation and banner. Link labels are up to 60 characters.

Blog

See Layouts.

Changelog

Authors

authors is an object that maps each author id to an author. Posts can also describe authors in their frontmatter. See Authors.

SEO

See SEO, share images and redirects.

Redirects

redirects is a list of up to 500 rules, checked in order. The first matching rule wins. See Redirects.
blog.json

Variables

variables is an object that maps names to values, which you use as {{ name }} in posts. See Variables. Names start with a letter and use letters, digits, _ and -, up to 40 characters, and values are up to 500 characters. Variables also work in description, banner.content, markdown.instructions and the title and description of blog and changelog.

Integrations

For step-by-step setup in the dashboard or repository, see Analytics integrations. Provider scripts run on the live production site only, after you publish and deploy the configuration. Drafts, previews and local development do not activate them.

Security

See Content-Security-Policy.

Full example

blog.json
Last modified on November 21, 2026