From 52a172d1a4911080444ff797183e29ba8175741e Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 20 Sep 2023 18:40:36 +0000
Subject: [PATCH] docs: wording changes for offline support

---
 docs/features/offline access.md                 |    2 +-
 quartz/components/Explorer.tsx                  |    1 +
 quartz/components/pages/OfflineFallbackPage.tsx |    2 +-
 quartz/plugins/emitters/offline.ts              |    2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/docs/features/offline access.md b/docs/features/offline access.md
index dcffdcd..885bbd5 100644
--- a/docs/features/offline access.md
+++ b/docs/features/offline access.md
@@ -4,7 +4,7 @@
   - 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
 
diff --git a/quartz/components/Explorer.tsx b/quartz/components/Explorer.tsx
index 8597075..c33d375 100644
--- a/quartz/components/Explorer.tsx
+++ b/quartz/components/Explorer.tsx
@@ -22,6 +22,7 @@
       return -1
     }
   },
+  filterFn: (node) => node.name !== "tags",
   order: ["filter", "map", "sort"],
 } satisfies Options
 
diff --git a/quartz/components/pages/OfflineFallbackPage.tsx b/quartz/components/pages/OfflineFallbackPage.tsx
index 14d4f5e..d2fede3 100644
--- a/quartz/components/pages/OfflineFallbackPage.tsx
+++ b/quartz/components/pages/OfflineFallbackPage.tsx
@@ -4,7 +4,7 @@
   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>
   )
 }
diff --git a/quartz/plugins/emitters/offline.ts b/quartz/plugins/emitters/offline.ts
index e3c654b..b17771a 100644
--- a/quartz/plugins/emitters/offline.ts
+++ b/quartz/plugins/emitters/offline.ts
@@ -62,7 +62,7 @@
       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: [] },
       })
 

--
Gitblit v1.10.0