fixed order of news on the main page #17

Merged
aziis98 merged 1 commits from i.serdyuk/website:main into main 1 year ago

@ -45,7 +45,7 @@ const galleryCollage = await Astro.glob('@/assets/gallery/*.jpg')
<div class="card-list"> <div class="card-list">
{ {
news.map(newsItem => ( news.toReversed().map(newsItem => (
<Card> <Card>
<a href={`/notizie/${newsItem.slug}`} class="title"> <a href={`/notizie/${newsItem.slug}`} class="title">
{newsItem.data.title} {newsItem.data.title}

Loading…
Cancel
Save