Add not blog found card

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2023-08-05 16:45:09 +06:00
parent dbb2575209
commit 926249c329
3 changed files with 15 additions and 9 deletions

View File

@@ -1,14 +1,14 @@
<script lang="ts" setup>
interface Props {
path: string
title: string
date: string
description: string
image: string
alt: string
ogImage: string
tags: Array<string>
published: boolean
path?: string
title?: string
date?: string
description?: string
image?: string
alt?: string
ogImage?: string
tags?: Array<string>
published?: boolean
}
withDefaults(defineProps<Props>(), {

View File

@@ -97,6 +97,12 @@ useHead({
:published="post.published"
/>
</template>
<ArchiveCard
v-if="paginatedData.length <= 0"
title="No Post Found"
image="/not-found.jpg"
/>
</div>
<template #fallback>

BIN
public/not-found.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB