Skip to content

Commit

Permalink
fix: 💄 Fixing Grid doesn't display correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bKoZii committed Sep 12, 2024
1 parent 321d00b commit 690b676
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pages/blog/tag/[tag].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
</section>
<UDivider class="my-4" />
<section>
<div v-if="tagBlogs?.data.length ?? 0 >= 0" v-for="tagBlogItems in tagBlogs?.data" :key="tagBlogItems.id">
<template v-if="tagBlogs?.data.length ?? 0 >= 0">
<section class="grid grid-cols-1 gap-3 md:grid-cols-2">
<BlogIndexCard :post="tagBlogItems.attributes" />
<div v-for="tagBlogItems in tagBlogs?.data" :key="tagBlogItems.id">
<BlogIndexCard :post="tagBlogItems.attributes" />
</div>
</section>
</div>
</template>
<div v-else>
<UAlert
title="No Blogs Found"
Expand Down Expand Up @@ -58,7 +60,7 @@ const { data: tagBlogs } = await useAsyncData('tagBlogs', () =>
)
useSeoMeta({
title: 'Tag: ' + tagName,
title: `Tag: ${tagName}`,
ogTitle: '%s [Blogs - Konkamon]',
titleTemplate: '%s [Blogs - Konkamon]',
description: `รวม Blogs ที่มี Tag: '${tagName}'`,
Expand Down

0 comments on commit 690b676

Please sign in to comment.