feat(theme): add readingTime frontmatter

This commit is contained in:
pengzhanbo 2024-03-14 04:41:09 +08:00
parent 9ea9141baa
commit 90896934eb

View File

@ -65,7 +65,7 @@ const hasMeta = computed(() => readingTime.value.time || tags.value.length || cr
<IconUser class="icon" />
<span>{{ matter.author }}</span>
</p>
<p v-if="readingTime.time" class="reading-time">
<p v-if="readingTime.time && matter.readingTime !== false" class="reading-time">
<IconBooks class="icon" />
<span>{{ readingTime.words }}</span>
<span>{{ readingTime.time }}</span>