From 8fd75ffbfda30edd5a134a1fbf9b81ac3cebb2ff Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Jul 2023 00:42:00 +0000
Subject: [PATCH] support attachments folder

---
 quartz/components/ReadingTime.tsx |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/quartz/components/ReadingTime.tsx b/quartz/components/ReadingTime.tsx
index cac8711..f802c87 100644
--- a/quartz/components/ReadingTime.tsx
+++ b/quartz/components/ReadingTime.tsx
@@ -3,10 +3,13 @@
 
 function ReadingTime({ fileData }: QuartzComponentProps) {
   const text = fileData.text
-  const isHomePage = fileData.slug === "index"
-  if (text && !isHomePage) {
+  if (text) {
     const { text: timeTaken, words } = readingTime(text)
-    return <p class="reading-time">{words} words, {timeTaken}</p>
+    return (
+      <p class="reading-time">
+        {words} words, {timeTaken}
+      </p>
+    )
   } else {
     return null
   }
@@ -15,7 +18,7 @@
 ReadingTime.css = `
 .reading-time {
   margin-top: 0;
-  opacity: 0.5;
+  color: var(--gray);
 }
 `
 

--
Gitblit v1.10.0