mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
Audit of the docs against 5.1 (release notes, core source, plugins) and fixes: - getting-started: 5.0 → 5.1 upgrade section (plugin doctor --fix, line breaks, heading ids, Bases 1.2, permalinks, frontmatter, CI, GFM before OFM), New in 5.1, git pull upstream v5, no redundant install steps - advanced: new plugin manifest reference (dependencies, defaultOrder, configSchema/optionSchema, deprecated, components…), making plugins (BuildCtx, emitters, page types, peer dependencies, imports), creating components (./components subpath, script loading, render/prefetch contract), capabilities, architecture, paths - cli: --directory is the content folder; build/sync flags and behaviour (sync force-pushes); plugin add from npm - configuration, layout, features and plugin pages: nested colors, built-ins, wikilinks/heading anchors, Obsidian compatibility (OFM 2.0), correct defaults and options, Bases 1.2, stacked pages, og-image v5 API; new pages for Excalidraw, TTRPG maps and themes
2.1 KiB
2.1 KiB
title, description, tags, image, repository, enabled, required
| title | description | tags | image | repository | enabled | required | |
|---|---|---|---|---|---|---|---|
| Description | Generates page descriptions for metadata and previews. |
|
[quartz-community/description](https://github.com/quartz-community/description) | true | false |
This plugin generates descriptions that are used as metadata for the HTML head, the RSS Feed and in folder and tag listings if there is no main body content, the description is used as the text between the title and the listing.
If the frontmatter contains a description property, it is used (see authoring content#Syntax). Otherwise, the plugin builds one from the first sentences of the content.
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
This plugin accepts the following configuration options:
descriptionLength: the target length of the generated description. Default is 150 characters. Whole sentences are added as long as the description stays within this length; the sentence that would exceed it is left out. The first sentence is always kept, however long it is.maxDescriptionLength: the hard maximum length of the generated description. If it exceeds this (e.g. a long first sentence), it is truncated with an ellipsis. Default is 300 characters. Adescriptionfrom the frontmatter is not truncated.replaceExternalLinks: Iftrue(default), replace external links in both generated and frontmatter descriptions with their domain and path in the description (e.g.https://domain.tld/some_page/another_page?query=hello&target=worldis replaced withdomain.tld/some_page/another_page).
Default options
- source: "@quartz-community/description"
enabled: true
options:
descriptionLength: 150
maxDescriptionLength: 300
replaceExternalLinks: true
order: 70
API
- Category: Transformer
- Function name:
ExternalPlugin.Description(). - Source:
quartz-community/description - Install:
npx quartz plugin add @quartz-community/description