Jacky Zhao
2023-08-07 028bcec62c3ca019a96783f17eaee1ecce6e092b
quartz/components/ReadingTime.tsx
@@ -5,7 +5,11 @@
  const text = fileData.text
  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
  }