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
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6991c244e27de06a2a1c0d1d5c7de3b19cb8cf65
|
Subproject commit 8164fcc2d60e88b50032fb44eda087d9943a0756
|
||||||
|
|
@ -6,6 +6,7 @@ import { requireAdminSession } from '../../lib/auth';
|
||||||
import Layout from '../../layouts/Layout.astro';
|
import Layout from '../../layouts/Layout.astro';
|
||||||
import { formatListItem } from '../../lib/format';
|
import { formatListItem } from '../../lib/format';
|
||||||
import { organizePostsByCategory, getSlug, enrichPostsWithDates } from '../../lib/md';
|
import { organizePostsByCategory, getSlug, enrichPostsWithDates } from '../../lib/md';
|
||||||
|
import map from '../../content/md/dnd/drakkenheim/map.jpg';
|
||||||
|
|
||||||
const { session, error } = await requireAdminSession(Astro.request);
|
const { session, error } = await requireAdminSession(Astro.request);
|
||||||
if (error) return error;
|
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>
|
<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 ? (
|
{sortedCategories.length === 0 ? (
|
||||||
<p class="muted">nothing here</p>
|
<p class="muted">nothing here</p>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue