fix metadata change in games

This commit is contained in:
Alexander Navarro 2023-09-09 11:30:44 -03:00
parent 333d6c95a3
commit 606d9a285b
3 changed files with 16 additions and 11 deletions

@ -1 +1 @@
Subproject commit 9e7ed8e596386ab05da15fa81a6d90c19d625f43 Subproject commit efff561a802a40e93493d01a50ef228bfe0c485e

View file

@ -1,15 +1,20 @@
--- ---
import Layout from '../../layouts/Layout.astro';
import { getCollection } from 'astro:content'; import { getCollection } from 'astro:content';
const games = await getCollection('games'); const games = await getCollection('games');
--- ---
<h1>Games</h1> <Layout title="aleidk">
<h1>Games</h1>
<ul> <ul>
{games.map(item => ( {
<li> games.map((item) => (
<a href={`games/${item.slug}`}>{item.data.Title}</a> <li>
</li> <a href={`games/${item.slug}`}>{item.data.title}</a>
))} </li>
</ul> ))
}
</ul>
</Layout>

View file

@ -69,13 +69,13 @@ const games = await getCollection('games', (_, idx) => idx < 3);
{ {
games.map((item) => ( games.map((item) => (
<li> <li>
<a href={`games/${item.slug}`}>{item.data.Title}</a> <a href={`games/${item.slug}`}>{item.data.title}</a>
</li> </li>
)) ))
} }
</ul> </ul>
<div slot="footer" class="text-end"> <div slot="footer" class="text-end">
<a href="">See more...</a> <a href="/games">See more...</a>
</div> </div>
</Card> </Card>
</div> </div>