Skip to content

Commit

Permalink
docs: wording changes for offline support
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Sep 20, 2023
1 parent d6301fa commit 52a172d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/features/offline access.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tags:
- 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

Expand Down
1 change: 1 addition & 0 deletions quartz/components/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const defaultOptions = {
return -1
}
},
filterFn: (node) => node.name !== "tags",
order: ["filter", "map", "sort"],
} satisfies Options

Expand Down
2 changes: 1 addition & 1 deletion quartz/components/pages/OfflineFallbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function OfflineFallbackPage() {
return (
<article class="popover-hint">
<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>
)
}
Expand Down
2 changes: 1 addition & 1 deletion quartz/plugins/emitters/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const Offline: QuartzEmitterPlugin = () => {
const [tree, vfile] = defaultProcessedContent({
slug,
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: [] },
})

Expand Down

0 comments on commit 52a172d

Please sign in to comment.