feat: really horrendously include the drakkenheim map in my private posts
This commit is contained in:
parent
629983ea77
commit
8788ae1a70
2 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||
) : (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue