feat: add dynamic descript to meta head (#56)

* feat: add dynamic descript to meta head

* revert code
This commit is contained in:
CorrectRoad authored and GitHub committed 2024-04-23 00:04:43 +08:00
1 parent 6d9259808a
commit 582e76cf43
6 files changed
+10 -8

No files matched your search

+3 -2
View File
@@ -10,15 +10,16 @@ import {siteConfig} from "@/config";
interface Props {
title: string;
banner?: string;
description?: string;
}
const { title, banner } = Astro.props
const { title, banner, description } = Astro.props
const isHomePage = pathsEqual(Astro.url.pathname, '/')
const enableBanner = siteConfig.banner.enable
---
<Layout title={title} banner={banner}>
<Layout title={title} banner={banner} description={description}>
<div class="max-w-[var(--page-width)] min-h-screen grid grid-cols-[17.5rem_auto] grid-rows-[auto_auto_1fr_auto] lg:grid-rows-[auto_1fr_auto]
mx-auto gap-4 relative px-0 md:px-4"
>