summaryrefslogtreecommitdiff
path: root/cli/commands
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-11 01:29:37 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-11 01:29:37 +0200
commit52531fbc8d3531a7941ad9c6c79a1e353d35f2fa (patch)
tree149636a7fee2870f08578d6600abeb176799c789 /cli/commands
parent91e8fdb99e321496c54288fe5a3db6397c768c10 (diff)
output redirect
Diffstat (limited to 'cli/commands')
-rw-r--r--cli/commands/site/export.py5
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: