docs: pre-release documentation fixes

- Remove non-existent 'move' strategy from CLI docs
- Update installation guide for v5 release (remove beta note, fix clone cmd)
- Add fontOrigin configuration documentation
- Document layout condition property with available presets
- Add optional title font to typography example
This commit is contained in:
saberzero1
2026-05-24 17:10:10 +02:00
parent 0d9b356046
commit 6b3c72d11e
4 changed files with 28 additions and 5 deletions

View File

@@ -108,6 +108,29 @@ layout:
right: []
```
### Conditional Rendering
Plugins can specify a `condition` in their layout block to control when they appear. This uses built-in presets:
```yaml title="quartz.config.yaml"
plugins:
- source: github:quartz-community/breadcrumbs
enabled: true
layout:
position: beforeBody
priority: 5
condition: not-index
```
Available conditions:
| Condition | Effect |
| ----------- | ---------------------------------------------------- |
| `not-index` | Hidden on the root index page, shown everywhere else |
| `has-tags` | Only shown on pages that have tags in frontmatter |
See [[layout-components]] for more details on conditional rendering and display options.
For advanced layout overrides using TypeScript (e.g. custom component wrappers or conditional logic), you can use the TS override in `quartz.ts`:
```ts title="quartz.ts"