mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-12 07:12:52 +01:00
feat: add dynamic descript to meta head (#56)
* feat: add dynamic descript to meta head * revert code
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user