Add themed board game library at /mygames/
Embed the bggpipe "Game Shelves" export (static/games/) into a themed Hugo page. A small loader (embed.js) fetches each export page, lifts out its <main>, rewrites relative URLs, and rewires game links to ?g=<slug> so the blog chrome stays on every page; embed.css scopes the export's component styling to the embed. The export itself is untouched and stays re-exportable. Adds the menu entry and excludes badges/ from deploy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e0e08ba67d
commit
f6611257b3
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title:
|
||||
description: My board game library, cataloged from shelf photos — search it, browse it, dig into any title.
|
||||
---
|
||||
|
||||
Welcome to my board game library. It's [cataloged straight from photos of my shelves](https://git.kestrelsnest.social/eric/bggpipe), pulling details and cover art from BoardGameGeek. Search the collection below, or click any game to see the full rundown.
|
||||
|
||||
{{< rawhtml >}}
|
||||
<link rel="stylesheet" href="/games/embed.css">
|
||||
<div id="games-embed"><p>Loading the shelves…</p></div>
|
||||
<script src="/games/embed.js" defer></script>
|
||||
{{< /rawhtml >}}
|
||||
Reference in New Issue
Block a user