diff --git a/src/components/cards/LargeBlogLeftCard.astro b/src/components/cards/LargeBlogLeftCard.astro index 74b6919..831077f 100644 --- a/src/components/cards/LargeBlogLeftCard.astro +++ b/src/components/cards/LargeBlogLeftCard.astro @@ -2,17 +2,19 @@ import { Icon } from 'astro-icon/components'; import { Image } from 'astro:assets'; +import { formatDate } from '@support/time'; import { getDirectusImageURL } from '@/support/url'; interface Props { title: string; subTitle: string; url: string; + pubDate: Date, img: string; imgAlt: string; } -const { title, subTitle, url, img, imgAlt } = Astro.props; +const { title, subTitle, url, pubDate, img, imgAlt } = Astro.props; ---
{subTitle}
- diff --git a/src/components/cards/LargeBlogRightCard.astro b/src/components/cards/LargeBlogRightCard.astro index a093f6f..fd2d07a 100644 --- a/src/components/cards/LargeBlogRightCard.astro +++ b/src/components/cards/LargeBlogRightCard.astro @@ -2,19 +2,21 @@ import { Icon } from 'astro-icon/components'; import { Image } from 'astro:assets'; +import { formatDate } from '@support/time'; import { getDirectusImageURL } from '@/support/url'; interface Props { title: string; subTitle: string; url: string; + pubDate: Date; imgOne: string; imgOneAlt: string; imgTwo?: string; imgTwoAlt?: string; } -const { title, subTitle, url, imgOne, imgOneAlt, imgTwo, imgTwoAlt } = Astro.props; +const { title, subTitle, url, pubDate, imgOne, imgOneAlt, imgTwo, imgTwoAlt } = Astro.props; ---{subTitle}
-