mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
22 lines
938 B
Markdown
22 lines
938 B
Markdown
|
---
|
||
|
title: Static
|
||
|
tags:
|
||
|
- plugin/emitter
|
||
|
---
|
||
|
|
||
|
This plugin emits all static resources needed by Quartz. This is used, for example, for fonts and images that need a stable position, such as banners and icons. The plugin respects the `ignorePatterns` in the global [[configuration]].
|
||
|
|
||
|
> [!important]
|
||
|
> This is different from [[Assets]]. The resources from the [[Static]] plugin are located under `quartz/static`, whereas [[Assets]] renders all static resources under `content` and is used for images, videos, audio, etc. that are directly referenced by your markdown content.
|
||
|
|
||
|
> [!note]
|
||
|
> For information on how to add, remove or configure plugins, see the [[Configuration#Plugins|Configuration]] page.
|
||
|
|
||
|
This plugin has no configuration options.
|
||
|
|
||
|
## API
|
||
|
|
||
|
- Category: Emitter
|
||
|
- Function name: `Plugin.Static()`.
|
||
|
- Source: [`quartz/plugins/emitters/static.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz/plugins/emitters/static.ts).
|