mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-23 00:15:02 +01:00
Working
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<nuxt-link :to="`/blog/${slug}`">
|
||||
<nuxt-link :to="`/blog/${slug}`" rel="noreferrer noopener">
|
||||
<div class="rounded-lg shadow-xl h-116 w-full lg:w-100 text-left bg-gray-100 dark:bg-gray-800 transform hover:scale-103 duration-300 mb-8 lg:mb-0">
|
||||
<div class="h-2/5 post rounded-t-lg"
|
||||
:style="{ backgroundImage: `url(${getBackgroundCover})` }">
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
}
|
||||
},
|
||||
setup(props: PostHomeProps) {
|
||||
const getBackgroundCover = computed(() => require(`@/assets/images/posts/${props.cover}`))
|
||||
const getBackgroundCover = computed(() => require(`~/assets/images/posts/${props.cover}`))
|
||||
|
||||
const { i18n } = useContext()
|
||||
const formatDate = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user