Options
Every option lives in jaab.config.ts, at the project root. Only title is
required:
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 |
string |
"./blog" |
The directory of the posts |
routeBase |
string |
"/" |
Where the blog is served |
perPage |
number |
10 |
Posts on each page of the index |
feed |
boolean | object |
true |
The RSS feed |
readingTime |
boolean |
true |
The minutes to read a post |
author |
string |
none | The author of a post that names none |
editLink |
boolean | string |
true |
The link to edit a post |
llms |
boolean |
true |
Files for language models |
layout |
string |
none | A layout of your own |
locales |
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.
| Option | What it does |
|---|---|
title |
The site name |
description |
The site description |
lang |
The language |
logo |
An image in place of the site name |
homeLink |
Where the site name leads |
nav |
Text links in the header |
social |
Icon links in the header |
footer |
The footer, with :feed for the feed link |
authors |
The people who write the site |
head |
Extra tags in <head> |
ogImage |
The social image |
theme |
The colours of the interface and code |
appearance |
Light, dark, or the reader’s choice |
tailwind |
Tailwind in your pages and styles |
ui |
The interface strings, per language |
Astro options
site, the public URL the
feed needs, base and
astro 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.