summaryrefslogtreecommitdiffstats
path: root/g2h/cli.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-31 01:09:37 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-31 15:53:33 +0200
commit284f3972844ea124c0cd9ee5500e99440bb96aac (patch)
treeb8dee22222c38b12cc00daf98280e1b2060bcca7 /g2h/cli.py
parentb06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (diff)
downloadgit2hugo-284f3972844ea124c0cd9ee5500e99440bb96aac.tar.gz
g2h: Add file page
Also move helpers to dedicated files.
Diffstat (limited to 'g2h/cli.py')
-rw-r--r--g2h/cli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/g2h/cli.py b/g2h/cli.py
index 52a2be7..fbc456e 100644
--- a/g2h/cli.py
+++ b/g2h/cli.py
@@ -34,6 +34,8 @@ def main():
tree = factory.new_tree(commit, '', git.get_repo())
for tree_page in tree.build_pages(factory):
tree_page.render()
+ for file in tree_page.get_files():
+ factory.new_file(commit, file).render()
if __name__ == '__main__':
main()