chore: stylistic changes

This commit is contained in:
enscribe 2024-09-10 22:50:12 -07:00
parent 051e466b6d
commit f705c07d55
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
8 changed files with 128 additions and 43 deletions

View file

@ -2,8 +2,7 @@
import { type CollectionEntry, getCollection, getEntry } from 'astro:content'
import Layout from '@layouts/Layout.astro'
import Container from '@components/Container.astro'
import FormattedDate from '@components/FormattedDate.astro'
import { readingTime } from '@lib/utils'
import { formatDate, readingTime } from '@lib/utils'
import PostNavigation from '@components/PostNavigation.astro'
import TableOfContents from '@components/TableOfContents.astro'
import { Image } from 'astro:assets'
@ -104,7 +103,7 @@ if (
alt={post.data.title}
width={1200}
height={630}
class="mb-8 rounded-lg object-cover shadow-lg"
class="mb-8 rounded-xl object-cover shadow-lg"
/>
)
}
@ -144,7 +143,7 @@ if (
</>
)
}
<FormattedDate date={post.data.date} />
<span>{formatDate(post.data.date)}</span>
<Separator orientation="vertical" className="h-4" />
<span>{readingTime(post.body)}</span>
</div>