chore: format pubish date

This commit is contained in:
Marios Antonoudiou
2024-01-11 09:43:52 +02:00
parent f57a08034b
commit ba7ec4d9f2
2 changed files with 2 additions and 2 deletions

View File

@@ -13,5 +13,5 @@ const date = useDateFormat(article.date, "Do of MMMM YYYY");
<ULink class="font-semibold hover:underline" :to="article._path">{{
article.title
}}</ULink>
<div class="text-xs text-slate-500">Published at {{ date }}</div>
<div class="text-xs text-slate-500">{{ date }}</div>
</template>

View File

@@ -16,7 +16,7 @@ const { path } = useRoute();
as="article"
>
<div class="text-sm text-slate-500">
Published at {{ formatDate(new Date(doc.date), "Do of MMMM YYYY") }}
{{ formatDate(new Date(doc.date), "Do of MMMM YYYY") }}
</div>
<h1>{{ doc.title }}</h1>
</UContainer>