diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
| commit | bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (patch) | |
| tree | d9abea372078840e69e38401bce663b00dfbe07e /g2h/log_page.py | |
| parent | 2a592ecd951f758a62b1c4907e5da212cf1ba264 (diff) | |
| download | git2hugo-bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1.tar.gz | |
g2h: Add navbar
Diffstat (limited to 'g2h/log_page.py')
| -rw-r--r-- | g2h/log_page.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/g2h/log_page.py b/g2h/log_page.py index 4b8ee10..b8df839 100644 --- a/g2h/log_page.py +++ b/g2h/log_page.py @@ -13,11 +13,12 @@ def ref_names_for_commit(refs, commit_sha): return ref_names class LogPage(Page): - def __init__(self, out_dir, name, commits, branches, tags, content_subdir): + def __init__(self, out_dir, name, commits, branches, tags, content_subdir, latest_commit): super(LogPage, self).__init__('log.md', out_dir, 'l.md', name, content_subdir) self.commits = commits self.branches = branches self.tags = tags + self.latest_commit = latest_commit def _commits_with_refs(self): commits_context = [] @@ -40,6 +41,7 @@ class LogPage(Page): return { 'commits': commits_context, 'content_subdir': self.content_subdir, - 'title': self.name + ': Log' + 'title': self.name + ': Log', + 'this_commit': self.latest_commit } |