authors

The people who write the site, by key. A page names them in its frontmatter.

Type Default Notes
Record<string, { name: string; url?: string }> {} Site option, JAAB reads it too

Use cases

The same people on many pages

authors: {
    ada: { name: 'Ada Lovelace', url: 'https://example.dev/ada' },
    grace: { name: 'Grace Hopper' },
},

A page writes authors: [ada, grace]. Each name with a url is a link, and the url also reaches the page’s metadata.

Docs and a blog

In site.config.ts, the map is shared: a post of JAAB and a page of the docs name the same people by the same keys.

Authors that are not in the map

A page can name anyone without the map: a string that is not a key is a name, as authors: Grace Hopper.