From 2a592ecd951f758a62b1c4907e5da212cf1ba264 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Thu, 18 Sep 2025 22:38:36 +0200 Subject: g2h: Set `date` frontmatter in overview page to HEAD commit --- g2h/git.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'g2h/git.py') diff --git a/g2h/git.py b/g2h/git.py index 1e835e7..283135c 100644 --- a/g2h/git.py +++ b/g2h/git.py @@ -13,6 +13,9 @@ class Git: def get_commits(self): return list(self.repo.iter_commits()) + def get_head(self): + return self.repo.head.commit + def get_repo(self): return self.repo -- cgit v1.2.3