Skip to content

Commit ed3f18c

Browse files
committed
more logs
1 parent 5ed7a28 commit ed3f18c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/pages/blog/[slug].astro

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
2-
import { getEntryGitInfo } from "@it-astro:content/git";
2+
import {
3+
getEntryGitInfo,
4+
getLatestCommitDate,
5+
getOldestCommitDate
6+
} from "@it-astro:content/git";
37
import { getCollection, render } from "astro:content";
48
59
import BlogLayout from "../../layouts/blog.astro";
@@ -27,7 +31,15 @@ const git = await getEntryGitInfo("posts", post.id);
2731
const publishedOn = git?.earliest ?? new Date();
2832
const updatedOn = git?.latest ?? new Date();
2933
30-
console.log({ git, id: post.id }, "WHYYYYY");
34+
console.log(
35+
{
36+
git,
37+
id: post.id,
38+
late: await getLatestCommitDate(post),
39+
old: await getOldestCommitDate(post)
40+
},
41+
"WHYYYYY"
42+
);
3143
---
3244

3345
<style>

0 commit comments

Comments
 (0)