diff --git a/src/components/post/PostHeader.astro b/src/components/post/PostHeader.astro index 26604aa9..69a7e574 100644 --- a/src/components/post/PostHeader.astro +++ b/src/components/post/PostHeader.astro @@ -47,6 +47,6 @@ const formattedDate = formatDate(pubDate) diff --git a/src/layouts/AppLayout.astro b/src/layouts/AppLayout.astro index bef74a21..6a7d42ab 100644 --- a/src/layouts/AppLayout.astro +++ b/src/layouts/AppLayout.astro @@ -11,6 +11,7 @@ export interface Props { description: string author: string headerCssClasses?: string + keywords?: string[] } const { title, description = '', author, headerCssClasses = '' } = Astro.props diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro new file mode 100644 index 00000000..cf3789c3 --- /dev/null +++ b/src/layouts/PostLayout.astro @@ -0,0 +1,40 @@ +--- +import type { CollectionEntry } from 'astro:content' + +import Breadcrumb from '@/components/Breadcrumb.astro' +import PostHeader from '@/components/post/PostHeader.astro' +import siteConfig from '@/configs/site' +import AppLayout from '@/layouts/AppLayout.astro' + +interface Props { + frontmatter: CollectionEntry<'leetcode-solutions'>['data'] +} + +const { frontmatter } = Astro.props +const { author } = siteConfig +--- + + +
+ + +
+ +
+
+
+ +