mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
1003 B
1003 B
| title | tags | |
|---|---|---|
| Assets |
|
This plugin emits all non-Markdown static assets in your content folder (like images, videos, HTML, etc). The plugin respects the ignorePatterns in the global configuration.
Note that all static assets will then be accessible through its path on your generated site, i.e: host.me/path/to/static.pdf
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
This plugin accepts the following configuration options:
resizeImages: A subset of the Sharp resizing options. Defaults to{ width: 1700, fit: 'inside' }.compressImages: Iftrue(default), enable image compression. Disable to copy images as-is without modification.
API
- Category: Emitter
- Function name:
Plugin.Assets(). - Source:
quartz/plugins/emitters/assets.ts.