Jacky Zhao
2023-08-03 264ea3d54438b30bc7d9280e076e3f6e29d0ff8c
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
  }