feat: really horrendously include the drakkenheim map in my private posts

This commit is contained in:
Lewis Wynne 2026-02-07 03:03:28 +00:00
parent 629983ea77
commit 8788ae1a70
2 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit 6991c244e27de06a2a1c0d1d5c7de3b19cb8cf65
Subproject commit 8164fcc2d60e88b50032fb44eda087d9943a0756

View file

@ -6,6 +6,7 @@ import { requireAdminSession } from '../../lib/auth';
import Layout from '../../layouts/Layout.astro';
import { formatListItem } from '../../lib/format';
import { organizePostsByCategory, getSlug, enrichPostsWithDates } from '../../lib/md';
import map from '../../content/md/dnd/drakkenheim/map.jpg';
const { session, error } = await requireAdminSession(Astro.request);
if (error) return error;
@ -19,6 +20,8 @@ const { grouped, categories: sortedCategories } = organizePostsByCategory(posts,
<p class="muted">logged in as {session.user?.name} <a href="/api/auth/signout">sign out</a></p>
<img src={map.src} alt="Drakkenheim map" />
{sortedCategories.length === 0 ? (
<p class="muted">nothing here</p>
) : (