Skip to content

Commit

Permalink
set description for external-post
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Jul 9, 2024
1 parent 4f17d20 commit 9d2936a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/external-posts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Layout from '../layouts/Layout.astro';
import { renderDateToHtml } from '../lib/render-date-to-html';
const title = '外部サイトの投稿';
const description = '外部サイトに寄稿した記事、登壇したイベントやスライド、出版物など。';
const items = await Promise.all(
(await getCollection('external-post'))
Expand All @@ -19,8 +20,12 @@ const items = await Promise.all(
);
---

<Layout title={title}>
<PageHeader title={title} />
<Layout title={title} description={description}>
<PageHeader title={title}>
<p class="text-sm text-dynamic-muted">
{description}
</p>
</PageHeader>

<main class="wrapper">
<DetailsList headingLevel={2} items={items} clampDescription />
Expand Down

0 comments on commit 9d2936a

Please sign in to comment.