fix: resolve meta data issue
This commit is contained in:
@@ -5,12 +5,16 @@ import SiteHeader from "../components/SiteHeader.astro";
|
|||||||
import BaseLayout from "./base.astro";
|
import BaseLayout from "./base.astro";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
code?: string;
|
code?: string;
|
||||||
|
content?: { title?: string; description?: string; code?: string };
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, description, code } = Astro.props as Props;
|
const content = Astro.props.content || Astro.props;
|
||||||
|
const title = content.title;
|
||||||
|
const description = content.description;
|
||||||
|
const code = content.code;
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout title={`${title} // Архив ДНТ-7`} description={description}>
|
<BaseLayout title={`${title} // Архив ДНТ-7`} description={description}>
|
||||||
|
|||||||
Reference in New Issue
Block a user