mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Redundant
This commit is contained in:
parent
03e3a0c5f1
commit
6b67446ce5
@ -4,6 +4,14 @@ title: Configuration
|
||||
|
||||
Quartz is meant to be extremely configurable, even if you don't know any coding. Most of the configuration you should need can be done by just editing `quartz.config.ts` or changing [[layout|the layout]] in `quartz.layout.ts`.
|
||||
|
||||
[[hosting#^123456]]
|
||||
|
||||
[[#general-configuration]]
|
||||
|
||||
[[#^test]]
|
||||
|
||||
[[configuration#^test]]
|
||||
|
||||
> [!tip]
|
||||
> If you edit Quartz configuration using a text-editor that has TypeScript language support like VSCode, it will warn you when you you've made an error in your configuration, helping you avoid configuration mistakes!
|
||||
|
||||
@ -76,7 +84,7 @@ plugins: {
|
||||
- [[tags/plugin/filter|Filters]] **filter** content (e.g. filtering out drafts)
|
||||
- [[tags/plugin/emitter|Emitters]] **reduce** over content (e.g. creating an RSS feed or pages that list all files with a specific tag)
|
||||
|
||||
You can customize the behaviour of Quartz by adding, removing and reordering plugins in the `transformers`, `filters` and `emitters` fields.
|
||||
You can customize the behaviour of Quartz by adding, removing and reordering plugins in the `transformers`, `filters` and `emitters` fields. ^test
|
||||
|
||||
> [!note]
|
||||
> Each node is modified by every transformer _in order_. Some transformers are position sensitive, so you may need to pay particular attention to whether they need to come before or after certain other plugins.
|
||||
|
||||
@ -34,7 +34,7 @@ To add a custom domain, check out [Cloudflare's documentation](https://developer
|
||||
|
||||
## GitHub Pages
|
||||
|
||||
In your local Quartz, create a new file `quartz/.github/workflows/deploy.yml`.
|
||||
In your local Quartz, create a new file `quartz/.github/workflows/deploy.yml`. ^123456
|
||||
|
||||
```yaml title="quartz/.github/workflows/deploy.yml"
|
||||
name: Deploy Quartz site to GitHub Pages
|
||||
|
||||
@ -87,9 +87,10 @@ async function mouseEnterHandler(
|
||||
const targetID = `popover-${el.id}`
|
||||
el.id = targetID
|
||||
})
|
||||
console.log(hash)
|
||||
const targetLink = hash.startsWith("#popover")
|
||||
? hash
|
||||
: `#popover-${hash.slice(1).replace("^", "").replace("%5E", "")}`
|
||||
: `#popover-${hash.slice(1)}`
|
||||
hash = targetLink
|
||||
const elts = [...html.getElementsByClassName("popover-hint")]
|
||||
if (elts.length === 0) return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user