feat: redesign homepage

This commit is contained in:
taskylizard 2024-08-31 18:17:01 +00:00
parent 76d6ed95cf
commit c8a8f4192e
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
40 changed files with 694 additions and 139 deletions

View file

@ -2,7 +2,7 @@
import Authors from './components/Authors.vue'
const props = defineProps<{
authors: string[]
authors: string
}>()
const formatDate = (raw: string): string => {
@ -14,10 +14,11 @@ const formatDate = (raw: string): string => {
}
const { frontmatter } = useData()
const authors = computed(() => props.authors.split(','))
</script>
<template>
<h1>{{ frontmatter.title }}</h1>
<div>{{ frontmatter.description }} {{ formatDate(frontmatter.date) }}</div>
<Authors :authors="props.authors" />
<Authors :authors="authors" />
</template>