Move v-if

This commit is contained in:
2021-08-31 19:47:29 +02:00
parent a6c3be8570
commit f7d8dda9ce
3 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<template>
<section v-if="posts" class="w-full flex items-center justify-center my-12">
<section class="w-full flex items-center justify-center my-12">
<div class="flex flex-col items-center text-center">
<div class="flex flex-col items-center">
<h2 class="font-bold text-3xl">
@@ -9,7 +9,7 @@
{{ $t('blog.description') }}
</p>
</div>
<div class="w-full lg:w-1/2 mt-20 grid grid-cols-1 gap-y-24 mb-8 sm:mb-24 text-left">
<div v-if="posts" class="w-full lg:w-1/2 mt-20 grid grid-cols-1 gap-y-24 mb-8 sm:mb-24 text-left">
<Post
v-for="post in posts"
:key="post.slug"