diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-19 19:21:11 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-19 19:21:11 +0200 |
| commit | a3324b7e71ec48daab81981e7d85967a590d4f79 (patch) | |
| tree | def4a8d901d9a56047a0e63f5f3d93803c93ee87 /g2h/overview_page.py | |
| parent | bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (diff) | |
| download | git2hugo-a3324b7e71ec48daab81981e7d85967a590d4f79.tar.gz | |
g2h: Add utility script
Also move the sources into the more conventional src/g2h dir
Diffstat (limited to 'g2h/overview_page.py')
| -rw-r--r-- | g2h/overview_page.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/g2h/overview_page.py b/g2h/overview_page.py deleted file mode 100644 index 145a8d7..0000000 --- a/g2h/overview_page.py +++ /dev/null @@ -1,19 +0,0 @@ -from .page import Page - -class OverviewPage(Page): - def __init__(self, out_dir, name, branches, tags, content_subdir, latest_commit): - super(OverviewPage, self).__init__('overview.md', out_dir, '_index.md', name, content_subdir) - self.branches = branches - self.tags = tags - self.latest_commit = latest_commit - - def context(self): - return { - 'branches': self.branches, - 'content_subdir': self.content_subdir, - 'latest_commit_date': self.latest_commit.committed_datetime, - 'tags': self.tags, - 'title': self.name, - 'this_commit': self.latest_commit - } - |