blog/src/pages/drafts.astro

14 lines
295 B
Plaintext
Raw Normal View History

2023-08-31 14:05:06 +00:00
---
import PostList from "../components/PostList.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
import { join } from "path";
const currentUrl = Astro.url;
---
<BaseLayout>
<h2>Blog</h2>
<PostList basePath={join(currentUrl.pathname, "posts")} drafts="only" />
</BaseLayout>