summaryrefslogtreecommitdiffstats
path: root/g2h/gen.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 12:53:59 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 12:53:59 +0200
commit782a350e1f56292176ac8471195c889e47b2b841 (patch)
tree441c689e1a638472fb1e090f2f0888c2ecd54372 /g2h/gen.py
parent978703ebc86060555da3df4c376e37d16aecce29 (diff)
downloadgit2hugo-782a350e1f56292176ac8471195c889e47b2b841.tar.gz
g2h:Add branches, tags and project name to overview page
Diffstat (limited to 'g2h/gen.py')
-rw-r--r--g2h/gen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/g2h/gen.py b/g2h/gen.py
index 4884072..02162e8 100644
--- a/g2h/gen.py
+++ b/g2h/gen.py
@@ -15,8 +15,10 @@ class Generator:
with open(out_file, 'w', encoding='utf-8') as f:
f.write(content)
- def render_overview(self, commits):
+ def render_overview(self, name, branches, tags):
context = {
- 'commits': commits
+ 'branches': branches,
+ 'tags': tags,
+ 'title': name
}
self._render('overview.md', context, '_index.md')