We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed7a28 commit ed3f18cCopy full SHA for ed3f18c
src/pages/blog/[slug].astro
@@ -1,5 +1,9 @@
1
---
2
-import { getEntryGitInfo } from "@it-astro:content/git";
+import {
3
+ getEntryGitInfo,
4
+ getLatestCommitDate,
5
+ getOldestCommitDate
6
+} from "@it-astro:content/git";
7
import { getCollection, render } from "astro:content";
8
9
import BlogLayout from "../../layouts/blog.astro";
@@ -27,7 +31,15 @@ const git = await getEntryGitInfo("posts", post.id);
27
31
const publishedOn = git?.earliest ?? new Date();
28
32
const updatedOn = git?.latest ?? new Date();
29
33
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
+);
43
44
45
<style>
0 commit comments