22
site/src/layouts/BlogLayout.astro
Normal file
22
site/src/layouts/BlogLayout.astro
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
import BaseLayout from "./BaseLayout.astro";
|
||||
import BlogSecondaryNav from "../components/BlogSecondaryNav.astro";
|
||||
import type { WordpressCategory } from "../lib/content/types";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
description: string;
|
||||
canonicalPath: string;
|
||||
ogImageUrl?: string;
|
||||
categories: WordpressCategory[];
|
||||
activeCategorySlug?: string;
|
||||
};
|
||||
|
||||
const { categories, activeCategorySlug, ...rest } = Astro.props;
|
||||
---
|
||||
|
||||
<BaseLayout {...rest}>
|
||||
<BlogSecondaryNav categories={categories} activeCategorySlug={activeCategorySlug} />
|
||||
<slot />
|
||||
</BaseLayout>
|
||||
|
||||
Reference in New Issue
Block a user