summaryrefslogtreecommitdiffstats
path: root/g2h/log_page.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 18:19:13 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 18:19:13 +0200
commit54f78e712baafa9ab6072508e004b2b6bf6430f8 (patch)
tree93d54a8efc60a709d6e370add61b3f1962b4e6f9 /g2h/log_page.py
parentd8d67f6ba38388aecbf66d791432d5cd3aa8db6e (diff)
downloadgit2hugo-54f78e712baafa9ab6072508e004b2b6bf6430f8.tar.gz
g2h: Link to commit pages from commit log
Diffstat (limited to 'g2h/log_page.py')
-rw-r--r--g2h/log_page.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/g2h/log_page.py b/g2h/log_page.py
index 9a3d64f..4b8ee10 100644
--- a/g2h/log_page.py
+++ b/g2h/log_page.py
@@ -25,6 +25,7 @@ class LogPage(Page):
refs = ref_names_for_commit(self.branches, commit.hexsha) + ref_names_for_commit(self.tags, commit.hexsha)
commit_context = {
'committed_datetime': commit.committed_datetime,
+ 'hexsha': commit.hexsha,
'refs': refs,
'summary': commit.summary
}
@@ -38,6 +39,7 @@ class LogPage(Page):
return {
'commits': commits_context,
+ 'content_subdir': self.content_subdir,
'title': self.name + ': Log'
}