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> <script lang="ts" setup>
interface Props { interface Props {
path: string path?: string
title: string title?: string
date: string date?: string
description: string description?: string
image: string image?: string
alt: string alt?: string
ogImage: string ogImage?: string
tags: Array<string> tags?: Array<string>
published: boolean published?: boolean
} }
withDefaults(defineProps<Props>(), { withDefaults(defineProps<Props>(), {

View File

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

BIN
public/not-found.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB