# Options

> Every option of jaab.config.ts, with its type and default.

Every option lives in `jaab.config.ts`, at the project root. Only `title` is
required:

```ts
import { defineJaabConfig } from '@jaamd/jaab'

export default defineJaabConfig({
    title: 'My blog',
    site: 'https://example.dev',
})
```

## The blog's own

| Option                                                                    | Type                | Default    | What it does                         |
| ------------------------------------------------------------------------- | ------------------- | ---------- | ------------------------------------ |
| [`blogDir`](https://docs.jaamd.org/jaab/configuration/blogdir.md)         | `string`            | `"./blog"` | The directory of the posts           |
| [`routeBase`](https://docs.jaamd.org/jaab/configuration/routebase.md)     | `string`            | `"/"`      | Where the blog is served             |
| [`perPage`](https://docs.jaamd.org/jaab/configuration/perpage.md)         | `number`            | `10`       | Posts on each page of the index      |
| [`feed`](https://docs.jaamd.org/jaab/configuration/feed.md)               | `boolean \| object` | `true`     | The RSS feed                         |
| [`readingTime`](https://docs.jaamd.org/jaab/configuration/readingtime.md) | `boolean`           | `true`     | The minutes to read a post           |
| [`author`](https://docs.jaamd.org/jaab/configuration/author.md)           | `string`            | none       | The author of a post that names none |
| [`editLink`](https://docs.jaamd.org/jaab/configuration/editlink.md)       | `boolean \| string` | `true`     | The link to edit a post              |
| [`llms`](https://docs.jaamd.org/jaab/configuration/llms.md)               | `boolean`           | `true`     | Files for language models            |
| [`layout`](https://docs.jaamd.org/jaab/configuration/layout.md)           | `string`            | none       | A layout of your own                 |
| [`locales`](https://docs.jaamd.org/jaab/configuration/locales.md)         | `string[] \| false` | detected   | The languages, when detection errs   |

## Site options

These are JAAD's, documented with it. Beside JAAD, they go in `site.config.ts`,
shared by both: see [Docs and a blog](https://docs.jaamd.org/jaab/getting-started/installation.md#docs-and-a-blog).

| Option                                                                    | What it does                               |
| ------------------------------------------------------------------------- | ------------------------------------------ |
| [`title`](https://docs.jaamd.org/jaad/configuration/title.md)             | The site name                              |
| [`description`](https://docs.jaamd.org/jaad/configuration/description.md) | The site description                       |
| [`lang`](https://docs.jaamd.org/jaad/configuration/lang.md)               | The language                               |
| [`logo`](https://docs.jaamd.org/jaad/configuration/logo.md)               | An image in place of the site name         |
| [`homeLink`](https://docs.jaamd.org/jaad/configuration/homelink.md)       | Where the site name leads                  |
| [`nav`](https://docs.jaamd.org/jaad/configuration/nav.md)                 | Text links in the header                   |
| [`social`](https://docs.jaamd.org/jaad/configuration/social.md)           | Icon links in the header                   |
| [`footer`](https://docs.jaamd.org/jaad/configuration/footer.md)           | The footer, with `:feed` for the feed link |
| [`authors`](https://docs.jaamd.org/jaad/configuration/authors.md)         | The people who write the site              |
| [`head`](https://docs.jaamd.org/jaad/configuration/head.md)               | Extra tags in `<head>`                     |
| [`ogImage`](https://docs.jaamd.org/jaad/configuration/ogimage.md)         | The social image                           |
| [`theme`](https://docs.jaamd.org/jaad/configuration/theme.md)             | The colours of the interface and code      |
| [`appearance`](https://docs.jaamd.org/jaad/configuration/appearance.md)   | Light, dark, or the reader's choice        |
| [`tailwind`](https://docs.jaamd.org/jaad/configuration/tailwind.md)       | Tailwind in your pages and styles          |
| [`ui`](https://docs.jaamd.org/jaad/configuration/ui.md)                   | The interface strings, per language        |

## Astro options

[`site`](https://docs.jaamd.org/jaad/configuration/site.md), the public URL the
feed needs, [`base`](https://docs.jaamd.org/jaad/configuration/base.md) and
[`astro`](https://docs.jaamd.org/jaad/configuration/astro.md) set up Astro. On a
blog alone, they go in `jaab.config.ts`. Beside JAAD, `site` and `base` go in
`astro.config.mjs`'s `defineConfig`, with the rest of Astro's own options.

Colours, fonts and widths are CSS custom properties in `src/jaamd.css`, as in
JAAD: see [Styles](https://docs.jaamd.org/jaad/guides/styles.md).
