update
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { formatDate } from "~/utils/helper";
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title?: string;
|
||||||
image: string;
|
image?: string;
|
||||||
alt: string;
|
alt?: string;
|
||||||
description: string;
|
description?: string;
|
||||||
date: string;
|
date?: string;
|
||||||
tags: Array<string>;
|
tags?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
@@ -25,7 +26,7 @@ withDefaults(defineProps<Props>(), {
|
|||||||
<div
|
<div
|
||||||
class="flex items-center text-sm font-bold text-violet-600 dark:text-violet-400 bg-violet-500/10 px-3 py-1 rounded-full border border-violet-500/20">
|
class="flex items-center text-sm font-bold text-violet-600 dark:text-violet-400 bg-violet-500/10 px-3 py-1 rounded-full border border-violet-500/20">
|
||||||
<LogoDate class="mr-2 w-4 h-4" />
|
<LogoDate class="mr-2 w-4 h-4" />
|
||||||
{{ date }}
|
{{ formatDate(date) }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center gap-2 flex-wrap">
|
<div class="flex items-center gap-2 flex-wrap">
|
||||||
<template v-for="tag in tags" :key="tag">
|
<template v-for="tag in tags" :key="tag">
|
||||||
|
|||||||
Reference in New Issue
Block a user