From 52531fbc8d3531a7941ad9c6c79a1e353d35f2fa Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 11 Jul 2020 01:29:37 +0200 Subject: output redirect --- cli/commands/site/export.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/commands') diff --git a/cli/commands/site/export.py b/cli/commands/site/export.py index c8e687a..cf6be7b 100644 --- a/cli/commands/site/export.py +++ b/cli/commands/site/export.py @@ -33,7 +33,10 @@ def cli(ctx, opt_graph_path, opt_output_dir): index_html = load_text(join(app_cfg.DIR_STATIC, 'site.html'), split=False) write_json(site_data, join(opt_output_dir, graph.path, 'index.json'), default=str) - write_index(graph, None, index_html, join(opt_output_dir, graph.path, 'index.html')) + # write_index(graph, None, index_html, join(opt_output_dir, graph.path, 'index.html')) + + home_page = site_data['graph']['home_page'] + write_text(f'', join(opt_output_dir, graph.path, 'index.html')) index_path = "" for page in graph.pages: -- cgit v1.2.3-70-g09d2