summaryrefslogtreecommitdiffstats
path: root/g2h/cli.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-09-18 22:38:36 +0200
committerChristoph Schlosser <christoph@linux.com>2025-09-18 22:38:36 +0200
commit2a592ecd951f758a62b1c4907e5da212cf1ba264 (patch)
treefe83de1e1d92f927589a07c0a02005e99d4649f2 /g2h/cli.py
parent74cd345f76dd01034c804f75e7f16b42e9c0643c (diff)
downloadgit2hugo-2a592ecd951f758a62b1c4907e5da212cf1ba264.tar.gz
g2h: Set `date` frontmatter in overview page to HEAD commit
Diffstat (limited to 'g2h/cli.py')
-rw-r--r--g2h/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g2h/cli.py b/g2h/cli.py
index fbc456e..6ffabb0 100644
--- a/g2h/cli.py
+++ b/g2h/cli.py
@@ -27,7 +27,7 @@ def main():
tags = sorted(git.get_tags(), key=lambda t: t.commit.committed_date, reverse=True)
factory = PageFactory(args.out_dir, project_name, args.content_subdir)
- factory.new_overview(branches, tags).render()
+ factory.new_overview(branches, tags, git.get_head()).render()
factory.new_log(commits, branches, tags).render()
for commit in commits:
factory.new_commit(commit).render()