Update games to make them visible

This commit is contained in:
Alexander Navarro 2023-12-17 20:58:58 -03:00
parent 800d2a83b1
commit b6450742d1
7 changed files with 29 additions and 36 deletions

View file

@ -5,7 +5,10 @@ import Card from '../components/Card.astro';
import { Image } from 'astro:assets';
import portrait from '../assets/images/portrait.jpg';
const games = await getCollection('games');
let games = await getCollection('games', ({ data }) => data.has_content);
games = games.sort(
(a, b) => b.data.date_added.getTime() - a.data.date_added.getTime(),
);
const blog = await getCollection('blog', ({ data }) =>
import.meta.env.PROD ? data.draft !== true : true,
@ -37,8 +40,12 @@ const portafolio = await getCollection('portafolio', ({ data }) =>
</p>
<p class="text-justify">
The first version of this project was developed as a <a href="https://en.wikipedia.org/wiki/Minimum_viable_product">MVP</a>. So this sites lacks many features I would like to add over time.
For an up to date roadmap, please visit the <a href="https://codeberg.org/aleidk/personal-page">project README</a>.
The first version of this project was developed as a <a
href="https://en.wikipedia.org/wiki/Minimum_viable_product">MVP</a
>. So this sites lacks many features I would like to add over time. For an
up to date roadmap, please visit the <a
href="https://codeberg.org/aleidk/personal-page">project README</a
>.
</p>
</section>