summaryrefslogtreecommitdiffstats
path: root/g2h/overview_page.py
diff options
context:
space:
mode:
Diffstat (limited to 'g2h/overview_page.py')
-rw-r--r--g2h/overview_page.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/g2h/overview_page.py b/g2h/overview_page.py
new file mode 100644
index 0000000..76de8cc
--- /dev/null
+++ b/g2h/overview_page.py
@@ -0,0 +1,16 @@
+from .page import Page
+
+class OverviewPage(Page):
+ def __init__(self, out_dir, name, branches, tags, content_subdir):
+ super(OverviewPage, self).__init__('overview.md', out_dir, '_index.md', name, content_subdir)
+ self.branches = branches
+ self.tags = tags
+
+ def context(self):
+ return {
+ 'branches': self.branches,
+ 'content_subdir': self.content_subdir,
+ 'tags': self.tags,
+ 'title': self.name
+ }
+