aboutsummaryrefslogtreecommitdiff
path: root/src/components/PostElement.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-12 19:36:57 +0300
committerValentin Popov <valentin@popov.link>2024-09-12 19:36:57 +0300
commit3376c53b2ee91041d5eaa0f9274da0affd7d4a9d (patch)
treea6b1e66a7e7f185128870b8f0ed671e2d7630f0e /src/components/PostElement.astro
parent0b57b888caf8817ff4992c59ed40ed29bee34fd4 (diff)
downloadpopov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.tar.xz
popov.link-3376c53b2ee91041d5eaa0f9274da0affd7d4a9d.zip
Refactor Astro components and layouts
Diffstat (limited to 'src/components/PostElement.astro')
-rw-r--r--src/components/PostElement.astro5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/PostElement.astro b/src/components/PostElement.astro
index 889cc47..2f98130 100644
--- a/src/components/PostElement.astro
+++ b/src/components/PostElement.astro
@@ -1,6 +1,11 @@
---
+import { type CollectionEntry } from "astro:content";
import dayjs from "dayjs";
+type Props = {
+ readonly post: CollectionEntry<"blog">;
+};
+
const { post } = Astro.props;
---