blog/src/pages/drafts.astro

14 lines
313 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";
2023-08-31 15:33:14 +00:00
import { join, dirname } from "path";
2023-08-31 14:05:06 +00:00
const currentUrl = Astro.url;
---
<BaseLayout>
<h2>Blog</h2>
2023-08-31 15:33:14 +00:00
<PostList basePath={join(dirname(currentUrl.pathname), "posts")} drafts="only" />
2023-08-31 14:05:06 +00:00
</BaseLayout>