Update to Eleventy v3 #11
25 changed files with 165 additions and 34 deletions
|
@ -38,10 +38,12 @@ export default function (eleventyConfig) {
|
||||||
|
|
||||||
// --------------------- Custom Collections -----------------------
|
// --------------------- Custom Collections -----------------------
|
||||||
eleventyConfig.addCollection("postsByTag", postsByTag);
|
eleventyConfig.addCollection("postsByTag", postsByTag);
|
||||||
eleventyConfig.addCollection("booksByTag", (collection) => {
|
eleventyConfig.addCollection("booksByTag", (collection) =>
|
||||||
const data = collectionByTag(collection, "book");
|
collectionByTag(collection, "book"),
|
||||||
return data;
|
);
|
||||||
});
|
eleventyConfig.addCollection("gamesByTag", (collection) =>
|
||||||
|
collectionByTag(collection, "game"),
|
||||||
|
);
|
||||||
|
|
||||||
// --------------------- Custom Filters -----------------------
|
// --------------------- Custom Filters -----------------------
|
||||||
eleventyConfig.addFilter("allTagCounts", allTagCounts);
|
eleventyConfig.addFilter("allTagCounts", allTagCounts);
|
||||||
|
|
|
@ -16,7 +16,7 @@ layout: "layouts/base"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr class="my-2" />
|
<hr class="my-2" />
|
||||||
<footer class="media-meta-grid gap-1">
|
<footer class="media-meta-grid gap-1">
|
||||||
<div class="media-image">
|
<div class="media-image media-image--tall">
|
||||||
<img src="{{ image }}" alt="" />
|
<img src="{{ image }}" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<div class="flow flex-col justify-center">
|
<div class="flow flex-col justify-center">
|
||||||
|
@ -37,11 +37,16 @@ layout: "layouts/base"
|
||||||
<strong>Playtime</strong><span>{{ playtime }}</span>
|
<strong>Playtime</strong><span>{{ playtime }}</span>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if tags %}
|
|
||||||
<li class="flex-col meta-grid--full">
|
|
||||||
<strong>Genres</strong><span>{{ tags | filter("game") | join(", ") }}</span>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
<hr class="my-2">
|
||||||
|
<ul class="[ categories ] [ cluster list-none p-0 line-height-m ]">
|
||||||
|
{% for tag in tags | filter("game") %}
|
||||||
|
<li>
|
||||||
|
<a class="[ button ]" href="/books/tag/{{ tag | slugify }}">
|
||||||
|
{% include "svgs/frame.svg" %}
|
||||||
|
{{ tag }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Super Mario World 2: Yoshi's Island"
|
title: "Super Mario World 2: Yoshi's Island"
|
||||||
platform: Super Nintendo
|
platform: Super Nintendo
|
||||||
image: https://cdn.wonderfulfrog.com/images/Yoshis_Island_box_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/games/yoshis-island-cover.jpg
|
||||||
tags: ["platformer"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- platformer
|
||||||
isFavourite: true
|
isFavourite: true
|
||||||
year: 1995
|
year: 1995
|
||||||
---
|
---
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
title: "Majora's Mask 3D"
|
title: "Majora's Mask 3D"
|
||||||
platform: Nintendo 3DS
|
platform: Nintendo 3DS
|
||||||
image: https://cdn.wonderfulfrog.com/images/Majoras_Mask_3D_cover.png
|
image: https://cdn.wonderfulfrog.com/images/Majoras_Mask_3D_cover.png
|
||||||
tags: ["adventure", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- adventure
|
||||||
year: 2015
|
year: 2015
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
title: "Mario & Luigi: Dream Team"
|
title: "Mario & Luigi: Dream Team"
|
||||||
platform: Nintendo 3DS
|
platform: Nintendo 3DS
|
||||||
image: https://cdn.wonderfulfrog.com/images/MarioLuigiDreamTeam.jpg
|
image: https://cdn.wonderfulfrog.com/images/MarioLuigiDreamTeam.jpg
|
||||||
tags: ["rpg", "turn based", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- rpg
|
||||||
|
- turn-based
|
||||||
year: 2013
|
year: 2013
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: "Donkey Kong Country: Tropical Freeze"
|
title: "Donkey Kong Country: Tropical Freeze"
|
||||||
platform: Nintendo Wii U
|
platform: Nintendo Wii U
|
||||||
image: https://cdn.wonderfulfrog.com/images/DKC5_box_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/DKC5_box_art.jpg
|
||||||
tags: ["platformer", "challenging", "single player", "multiplayer"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- co-op
|
||||||
|
- platformer
|
||||||
|
- challenging
|
||||||
year: 2014
|
year: 2014
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: "Professor Layton vs. Phoenix Wright: Ace Attorney"
|
title: "Professor Layton vs. Phoenix Wright: Ace Attorney"
|
||||||
platform: Nintendo 3DS
|
platform: Nintendo 3DS
|
||||||
image: https://cdn.wonderfulfrog.com/images/Laytonvsaceattorneycover.jpg
|
image: https://cdn.wonderfulfrog.com/images/Laytonvsaceattorneycover.jpg
|
||||||
tags: ["puzzle", "narrative", "visual novel", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- narrative
|
||||||
|
- puzzle
|
||||||
|
- visual-novel
|
||||||
year: 2014
|
year: 2014
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: "The Wonderful 101"
|
title: "The Wonderful 101"
|
||||||
platform: Nintendo Wii U
|
platform: Nintendo Wii U
|
||||||
image: https://cdn.wonderfulfrog.com/images/Wonderful_101_box_artwork.jpg
|
image: https://cdn.wonderfulfrog.com/images/Wonderful_101_box_artwork.jpg
|
||||||
tags: ["action", "beat em up", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- beat-em-up
|
||||||
|
- platinum
|
||||||
year: 2013
|
year: 2013
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
title: Fallout 4
|
title: Fallout 4
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/Fallout_4_cover_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/Fallout_4_cover_art.jpg
|
||||||
tags: ["rpg", "action", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- rpg
|
||||||
year: 2015
|
year: 2015
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: "Persona 3 Portable"
|
title: "Persona 3 Portable"
|
||||||
platform: PlayStation Portable
|
platform: PlayStation Portable
|
||||||
image: https://cdn.wonderfulfrog.com/images/p3p.jpg
|
image: https://cdn.wonderfulfrog.com/images/p3p.jpg
|
||||||
tags: ["rpg", "turn based", "persona", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- rpg
|
||||||
|
- turn-based
|
||||||
|
- persona
|
||||||
youtube: true
|
youtube: true
|
||||||
year: 2009
|
year: 2009
|
||||||
---
|
---
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
title: Shovel Knight
|
title: Shovel Knight
|
||||||
platform: Nintendo Wii U
|
platform: Nintendo Wii U
|
||||||
image: https://cdn.wonderfulfrog.com/images/Shovel_knight_cover.jpg
|
image: https://cdn.wonderfulfrog.com/images/Shovel_knight_cover.jpg
|
||||||
tags: ["platformer", "retro", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- platformer
|
||||||
|
- retro
|
||||||
year: 2014
|
year: 2014
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
title: Tomb Raider
|
title: Tomb Raider
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/TombRaider2013.jpg
|
image: https://cdn.wonderfulfrog.com/images/TombRaider2013.jpg
|
||||||
tags: ["action", "adventure", "puzzle", "reboot", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- adventure
|
||||||
|
- puzzle
|
||||||
|
- reboot
|
||||||
year: 2013
|
year: 2013
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: "Assassin's Creed IV: Black Flag"
|
title: "Assassin's Creed IV: Black Flag"
|
||||||
platform: PlayStation 3
|
platform: PlayStation 3
|
||||||
image: https://cdn.wonderfulfrog.com/images/Assassins_Creed_IV_-_Black_Flag_cover.jpg
|
image: https://cdn.wonderfulfrog.com/images/Assassins_Creed_IV_-_Black_Flag_cover.jpg
|
||||||
tags: ["action", "adventure", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- open-world
|
||||||
|
- adventure
|
||||||
year: 2013
|
year: 2013
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: DOOM
|
title: DOOM
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/Doom_Cover.jpg
|
image: https://cdn.wonderfulfrog.com/images/Doom_Cover.jpg
|
||||||
tags: ["action", "fps", "retro shooter", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- fps
|
||||||
|
- action
|
||||||
|
- retro-shooter
|
||||||
year: 2016
|
year: 2016
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,13 @@ title: Hyper Light Drifter
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/HyperLightDrifterBoxArt.png
|
image: https://cdn.wonderfulfrog.com/images/HyperLightDrifterBoxArt.png
|
||||||
tags:
|
tags:
|
||||||
["action", "hack and slash", "retro", "indie", "open world", "single player"]
|
- single-player
|
||||||
|
- action
|
||||||
|
- retro
|
||||||
|
- indie
|
||||||
|
- hack-n-slash
|
||||||
|
- open-world
|
||||||
|
- retro
|
||||||
year: 2016
|
year: 2016
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
title: Vanquish
|
title: Vanquish
|
||||||
platform: PlayStation 3
|
platform: PlayStation 3
|
||||||
image: https://cdn.wonderfulfrog.com/images/PG_Vanquish_box_artwork.png
|
image: https://cdn.wonderfulfrog.com/images/PG_Vanquish_box_artwork.png
|
||||||
tags: ["action", "platinum", "shooter", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- shooter
|
||||||
|
- platinum
|
||||||
year: 2010
|
year: 2010
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
title: Persona 5
|
title: Persona 5
|
||||||
platform: PlayStation 4
|
platform: PlayStation 4
|
||||||
image: https://cdn.wonderfulfrog.com/images/Persona_5_cover_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/Persona_5_cover_art.jpg
|
||||||
tags: ["rpg", "turn based", "single player", "persona"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- rpg
|
||||||
|
- turn-based
|
||||||
|
- persona
|
||||||
year: 2016
|
year: 2016
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
---
|
---
|
||||||
title: Axiom Verge
|
title: Axiom Verge
|
||||||
platform: Nintendo Switch
|
platform: Nintendo Switch
|
||||||
image: https://cdn.wonderfulfrog.com/images/Axiom_Verge_Title.png
|
image: https://cdn.wonderfulfrog.com/images/games/axiom-verge-cover.jpg
|
||||||
tags: ["action", "metroidvania", "indie", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- action
|
||||||
|
- indie
|
||||||
|
- metroidvania
|
||||||
|
- retro
|
||||||
year: 2015
|
year: 2015
|
||||||
---
|
---
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
title: "Animal Crossings: New Horizons"
|
title: "Animal Crossings: New Horizons"
|
||||||
platform: Switch
|
platform: Switch
|
||||||
image: https://cdn.wonderfulfrog.com/images/acnh.jpg
|
image: https://cdn.wonderfulfrog.com/images/acnh.jpg
|
||||||
tags: ["single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- multiplayer
|
||||||
|
- life-sim
|
||||||
year: 2020
|
year: 2020
|
||||||
playtime: 400+ hours
|
playtime: 400+ hours
|
||||||
pullquote: Idyllic escape from the world
|
pullquote: Idyllic escape from the world
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
---
|
---
|
||||||
title: Her Story
|
title: Her Story
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/Her_Story_store_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/games/her-story-cover.jpg
|
||||||
tags: ["pc", "narrative", "simulator", "indie", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- indie
|
||||||
|
- simulation
|
||||||
|
- narrative
|
||||||
year: 2015
|
year: 2015
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,11 @@ title: "Middle-earth: Shadow of Mordor"
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/Shadow_of_Mordor_cover_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/Shadow_of_Mordor_cover_art.jpg
|
||||||
tags:
|
tags:
|
||||||
["action", "nemesis system", "hack and slash", "single player", "open world"]
|
- single-player
|
||||||
|
- action
|
||||||
|
- hack-n-slash
|
||||||
|
- open-world
|
||||||
|
- nemesis-system
|
||||||
year: 2014
|
year: 2014
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
---
|
---
|
||||||
title: Citizen Sleeper
|
title: Citizen Sleeper
|
||||||
platform: PC
|
platform: PC
|
||||||
image: https://cdn.wonderfulfrog.com/images/Citizen_Sleeper_cover_art.jpg
|
image: https://cdn.wonderfulfrog.com/images/games/citizen-sleeper-cover.jpg
|
||||||
tags: ["narrative", "visual novel", "indie", "rpg", "single player"]
|
tags:
|
||||||
|
- single-player
|
||||||
|
- narrative
|
||||||
|
- visual-novel
|
||||||
|
- indie
|
||||||
|
- rpg
|
||||||
year: 2022
|
year: 2022
|
||||||
rating: 4
|
rating: 4
|
||||||
playtime: 7 hours
|
playtime: 7 hours
|
||||||
|
|
|
@ -6,11 +6,24 @@ permalink: "games/index.html"
|
||||||
{% from "macros/media-grid.njk" import grid %}
|
{% from "macros/media-grid.njk" import grid %}
|
||||||
{% set data = collections.game | reverse | limit(5) %}
|
{% set data = collections.game | reverse | limit(5) %}
|
||||||
{% set faves = collections.game | filterFavourites | reverse | limit(5) %}
|
{% set faves = collections.game | filterFavourites | reverse | limit(5) %}
|
||||||
|
{% set tags = collections.game | allTagCounts(["game"]) | limit(5) %}
|
||||||
<section class="flow">
|
<section class="flow">
|
||||||
<h1>Games</h1>
|
<h1>Games</h1>
|
||||||
<p>
|
<p>
|
||||||
A collection of games I played over the years. Ideally this would include every game I've every played, but realistically it's an approximation. I try to include my own thoughts with each.
|
A collection of games I played over the years. Ideally this would include every game I've every played, but realistically it's an approximation. I try to include my own thoughts with each.
|
||||||
</p>
|
</p>
|
||||||
|
<h2>
|
||||||
|
<a href="tags">Tags</a>
|
||||||
|
</h2>
|
||||||
|
<ul class="[ categories ] [ cluster list-none p-0 line-height-m ]">
|
||||||
|
{% for tag in tags %}
|
||||||
|
<li>
|
||||||
|
<a class="[ button ]" href="/games/tag/{{ tag.tag | slugify }}">
|
||||||
|
{% include "svgs/frame.svg" %}
|
||||||
|
{{ tag.tag }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="recent">Latest games</a>
|
<a href="recent">Latest games</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
15
src/pages/games/tag.html
Normal file
15
src/pages/games/tag.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
pagination:
|
||||||
|
data: collections.gamesByTag
|
||||||
|
size: 1
|
||||||
|
alias: tag
|
||||||
|
permalink: "games/tag/{{ tag | slugify }}/index.html"
|
||||||
|
---
|
||||||
|
|
||||||
|
{% from "macros/media-grid.njk" import grid %}
|
||||||
|
{% set data = collections.gamesByTag[tag] %}
|
||||||
|
<header class="flow flow-space-1">
|
||||||
|
<h1>Games</h1>
|
||||||
|
<p class="text-fadeText flow-space-0.25">Tagged with "{{ tag }}"</p>
|
||||||
|
</header>
|
||||||
|
{{ grid(data) }}
|
19
src/pages/games/tags.html
Normal file
19
src/pages/games/tags.html
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
title: Tagged in Games
|
||||||
|
permalink: "games/tags/index.html"
|
||||||
|
---
|
||||||
|
|
||||||
|
{% from "macros/media-grid.njk" import grid %}
|
||||||
|
{% set tags = collections.game | allTagCounts(["game"]) %}
|
||||||
|
<section class="flow">
|
||||||
|
<h1>Tagged in Games</h1>
|
||||||
|
<ul class="[ categories ] [ cluster list-none p-0 line-height-m ]">
|
||||||
|
{% for tag in tags %}
|
||||||
|
<li>
|
||||||
|
<a class="[ button ]" href="/games/tag/{{ tag.tag | slugify }}">
|
||||||
|
{% include "svgs/frame.svg" %}
|
||||||
|
{{ tag.tag }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
Loading…
Add table
Add a link
Reference in a new issue