Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
coderfe committed Apr 21, 2024
1 parent ba77a1f commit a008e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import Tags from '@/components/tags/Tags.astro';
type Props = CollectionEntry<'blog'>['data'];
const { title, tldr, date, tags = [], heroImage } = Astro.props;
const { title, tldr, date, tags = [], cover, heroImage } = Astro.props;
---

<!doctype html>
<html lang="zh-Hans">
<head>
<BaseHead title={title} description={tldr} />
<BaseHead title={title} description={tldr} image={cover?.src} />
</head>

<body class="bg-white dark:bg-slate-900">
Expand Down

0 comments on commit a008e93

Please sign in to comment.