mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
docs: wording changes for offline support
This commit is contained in:
parent
d6301fae90
commit
52a172d1a4
4 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@ tags:
|
||||||
- plugin/emitter
|
- plugin/emitter
|
||||||
---
|
---
|
||||||
|
|
||||||
This plugin allows your website to be accessible offline and be installed as an app. You can use it by adding `Plugin.Offline(),` to the `emitters` in `quartz.config.ts`
|
This plugin allows your website to be accessible offline and be installed as an app. You can enable it by adding `Plugin.Offline(),` to the `emitters` in `quartz.config.ts`
|
||||||
|
|
||||||
## Offline Capability
|
## Offline Capability
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ const defaultOptions = {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
filterFn: (node) => node.name !== "tags",
|
||||||
order: ["filter", "map", "sort"],
|
order: ["filter", "map", "sort"],
|
||||||
} satisfies Options
|
} satisfies Options
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ function OfflineFallbackPage() {
|
||||||
return (
|
return (
|
||||||
<article class="popover-hint">
|
<article class="popover-hint">
|
||||||
<h1>Offline</h1>
|
<h1>Offline</h1>
|
||||||
<p>This page isn't offline available yet.</p>
|
<p>You're offline and this page hasn't been cached yet.</p>
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ export const Offline: QuartzEmitterPlugin = () => {
|
||||||
const [tree, vfile] = defaultProcessedContent({
|
const [tree, vfile] = defaultProcessedContent({
|
||||||
slug,
|
slug,
|
||||||
text: "Offline",
|
text: "Offline",
|
||||||
description: "This page isn't offline available yet.",
|
description: "You're offline and this page hasn't been cached yet.",
|
||||||
frontmatter: { title: "Offline", tags: [] },
|
frontmatter: { title: "Offline", tags: [] },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue