parent
0afe61add2
commit
2af757d5bd
12 changed files with 83 additions and 9 deletions
src/components
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue