diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-18 22:38:36 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-18 22:38:36 +0200 |
| commit | 2a592ecd951f758a62b1c4907e5da212cf1ba264 (patch) | |
| tree | fe83de1e1d92f927589a07c0a02005e99d4649f2 /g2h/page_factory.py | |
| parent | 74cd345f76dd01034c804f75e7f16b42e9c0643c (diff) | |
| download | git2hugo-2a592ecd951f758a62b1c4907e5da212cf1ba264.tar.gz | |
g2h: Set `date` frontmatter in overview page to HEAD commit
Diffstat (limited to 'g2h/page_factory.py')
| -rw-r--r-- | g2h/page_factory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g2h/page_factory.py b/g2h/page_factory.py index da9c5d5..82e2b0f 100644 --- a/g2h/page_factory.py +++ b/g2h/page_factory.py @@ -20,8 +20,8 @@ class PageFactory: dir = os.path.dirname(path) return FilePage(self.out_dir, self.name, commit, filename, dir, self.content_subdir) - def new_overview(self, branches, tags): - return OverviewPage(self.out_dir, self.name, branches, tags, self.content_subdir) + def new_overview(self, branches, tags, head): + return OverviewPage(self.out_dir, self.name, branches, tags, self.content_subdir, head) def new_log(self, commits, branches, tags): return LogPage(self.out_dir, self.name, commits, branches, tags, self.content_subdir) |