feat: use time el for date strings

for better machine recognition
This commit is contained in:
2022-12-01 01:24:26 -05:00
parent 156be1cfd4
commit a5142fb00b
6 changed files with 26 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { BlogParsedContent, StoryParsedContent } from "@/shared/types";
import { calcReadingTime, getPrettyDate } from "@/shared/metadata";
import { calcReadingTime } from "@/shared/metadata";
type GeneralParsedContent = BlogParsedContent | StoryParsedContent;
@@ -33,7 +33,7 @@ const captionText =
{{ captionText }}
</p>
<h1 class="m-0">{{ doc.title }}</h1>
<p class="my-2">{{ getPrettyDate(doc) }} · {{ descText }}</p>
<p class="my-2"><Date :doc="doc" /> · {{ descText }}</p>
<div class="flex flex-wrap">
<Tag
v-for="(tag, index) in doc.tags"