term/definition pairs for glossaries and specs.
- Markdown
- Plain-text formatting with # and *.
- Frontmatter
- Settings between two --- lines.
- Export
- Building the static dist/ folder.
Install
From your site folder, run:
jprot add DefListThat downloads the self-contained component into theme/components/DefList.js,
where it is picked up automatically — the same way as any built-in component.
To remove it later, just delete that file.
Use it as a homepage section
Add an entry to the sections: list in jprot.config.js:
sections: [
{ component: 'DefList', title: 'DefList' },
]Use it inside a page
On its own line in any Markdown file, passing the props:
:::DefList items='[{"term":"Markdown","def":"Plain-text formatting with # and *."},{"term":"Frontmatter","def":"Settings between two --- lines."},{"term":"Export","def":"Building the static dist/ folder."}]'Props
| Prop | Type | Note |
|---|---|---|
items | array | [{ term, def }] |