feat: move games into their own section

This commit is contained in:
Devin Haska 2024-11-14 22:32:19 -08:00
parent 6084396e0b
commit fab1780282
35 changed files with 257 additions and 21 deletions

19
src/pages/games/year.html Normal file
View file

@ -0,0 +1,19 @@
---
pagination:
data: collections.gamesByYear
size: 1
alias: year
resolve: values
permalink: "games/year/{{ year.value }}/index.html"
---
{% from "macros/media-grid.njk" import grid %}
{% set gamesData = year.data | reverse %}
<section class="flow">
<a href="/games">Back to games</a>
<h1>Games in {{ year.value }}</h1>
<p>
A collection of games I've played in <strong>{{ year.value }}</strong>.
</p>
{{ grid(gamesData) }}
</section>