diff options
Diffstat (limited to 'cli/commands')
| -rw-r--r-- | cli/commands/site/export.py | 5 |
1 files changed, 4 insertions, 1 deletions
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'<meta http-equiv="refresh" content="0; url={home_page}">', join(opt_output_dir, graph.path, 'index.html')) index_path = "" for page in graph.pages: |
