diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index de916bd..dda3ffd 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -40,11 +40,7 @@ const lang = Astro.currentLocale as Lang || defaultLang;
-
-
- -
-
+
diff --git a/src/layouts/BlogPostLayout.astro b/src/layouts/BlogPostLayout.astro new file mode 100644 index 0000000..1489c3c --- /dev/null +++ b/src/layouts/BlogPostLayout.astro @@ -0,0 +1,125 @@ +--- +import { type Lang } from '@/i18n/utils'; +import { defaultLang } from '@/i18n/ui'; +import GlassHeader from '@/components/GlassHeader'; +import Footer from '@/components/Footer'; +import "../styles/global.css"; + +export interface Props { + title: string; + description?: string; + publishDate?: string; + author?: string; +} + +const { + title, + description = 'Explore my latest thoughts on coding, tech trends, and developer life.', + publishDate, + author = 'Zhao Guiyang' +} = Astro.props; +const lang = Astro.currentLocale as Lang || defaultLang; +--- + + + + + + + + + + {title} + + + + + +
+
+ + + + +
+
+ +
+

{title}

+ {publishDate && ( +
+ +
+ )} + {author && ( +
+ By {author} +
+ )} +
+ + +
+ +
+
+
+ + +