SSR Switch
This commit is contained in:
@@ -15,11 +15,8 @@
|
||||
<!-- sub-main posts -->
|
||||
<div class="md:w-4/7">
|
||||
<div v-for="subarticle in subarticles" :key="subarticle.id">
|
||||
<router-link
|
||||
:to="{
|
||||
name: 'article.show',
|
||||
params: { id: subarticle.id }
|
||||
}"
|
||||
<a
|
||||
href=""
|
||||
class="rounded w-full flex flex-col md:flex-row mb-10"
|
||||
>
|
||||
<div class="bg-white rounded px-4">
|
||||
@@ -85,7 +82,7 @@
|
||||
:src="subarticle.featured_image"
|
||||
class="block md:hidden lg:block rounded-md h-64 md:h-32 m-4 md:m-0"
|
||||
/>
|
||||
</router-link>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -94,24 +91,24 @@
|
||||
class="mb-4 lg:mb-0 p-4 lg:p-0 w-full md:w-4/7 relative rounded block"
|
||||
v-if="article"
|
||||
>
|
||||
<router-link
|
||||
:to="{ name: 'article.show', params: { id: article.id } }"
|
||||
<a
|
||||
href="#"
|
||||
>
|
||||
<img
|
||||
:src="article.featured_image"
|
||||
class="rounded-md object-cover w-full h-3/4"
|
||||
/>
|
||||
</router-link>
|
||||
</a>
|
||||
|
||||
<router-link
|
||||
:to="{ name: 'article.show', params: { id: article.id } }"
|
||||
<a
|
||||
href="#"
|
||||
>
|
||||
<h1
|
||||
class="text-gray-800 text-3xl font-bold mt-2 mb-2 leading-tigh hover:underline text-right MvTyper"
|
||||
style="direction:rtl;"
|
||||
v-text="article.title"
|
||||
></h1>
|
||||
</router-link>
|
||||
</a>
|
||||
|
||||
<div class="flex justify-end items-center">
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user