This commit is contained in:
2021-04-18 22:07:01 +02:00
parent b835cc3942
commit 97da8d1d0e
3 changed files with 5 additions and 6 deletions

View File

@@ -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(() => {

View File

@@ -19,6 +19,3 @@ export default Vue.extend({
}
})
</script>
<style lang="scss" scoped>
</style>

View File

@@ -33,7 +33,9 @@ import {Project} from "../../@types/types";
export default {
name: "index",
head: {},
head: {
title: `Projects - Arthur Danjou`
},
setup() {
const { $content, i18n } = useContext()