Started work on Teslafest Section

This commit is contained in:
Firq 2024-04-28 14:45:59 +02:00
parent 0afe61add2
commit 2af757d5bd
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
12 changed files with 83 additions and 9 deletions
src/components

View file

@ -1,5 +1,6 @@
---
export interface Props {
baseurl: string
slug: string
title: string
releaseDate: Date
@ -12,8 +13,8 @@ const options_date: Intl.DateTimeFormatOptions = {
day: '2-digit',
}
const { shortdescription, releaseDate, slug, title } = Astro.props
const url = `/database/${slug}`
const { shortdescription, releaseDate, slug, title, baseurl } = Astro.props
const url = `/${baseurl}/${slug}`
const render_date = releaseDate.toLocaleDateString(
'en-GB',
options_date