Fixed content collections

This commit is contained in:
Firq-ow 2024-01-09 14:30:28 +01:00
parent c94fb25aba
commit 65d4339b9f
Signed by: Firq
GPG key ID: BC5CE35A72BDB4AB
12 changed files with 67 additions and 111 deletions
src/components

View file

@ -1,6 +1,6 @@
---
export interface Props {
url: string
slug: string
title: string
questReleaseDate: string
shortdescription: string
@ -11,7 +11,8 @@ const options_date: Intl.DateTimeFormatOptions = {
month: 'long',
day: '2-digit',
}
const { shortdescription, questReleaseDate, url, title } = Astro.props
const { shortdescription, questReleaseDate, slug, title } = Astro.props
const url = `/database/${slug}`
const render_date = new Date(questReleaseDate).toLocaleDateString(
'en-GB',
options_date